|
|
@ -11,6 +11,13 @@ if [[ `uname` == 'Darwin' ]]; then
|
|
|
|
music_dir='~/Music'
|
|
|
|
music_dir='~/Music'
|
|
|
|
desktop_dir='~/Desktop'
|
|
|
|
desktop_dir='~/Desktop'
|
|
|
|
docs_dir='~/Documents'
|
|
|
|
docs_dir='~/Documents'
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
music_dir='~/music'
|
|
|
|
|
|
|
|
desktop_dir='~/desktop'
|
|
|
|
|
|
|
|
docs_dir='~/documents'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# linux only alias
|
|
|
|
|
|
|
|
alias push-to-player="rsync -recursive --verbose --times --modify-window=1 --delete $pods_dir `mount -l | awk '/podcasts/ {print $3}'`/podcast/"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# enable color support of ls and also add handy aliases
|
|
|
|
# enable color support of ls and also add handy aliases
|
|
|
@ -23,10 +30,6 @@ if [ -x /usr/bin/dircolors ]; then
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
|
|
|
|
|
|
|
|
music_dir='~/music'
|
|
|
|
|
|
|
|
desktop_dir='~/desktop'
|
|
|
|
|
|
|
|
docs_dir='~/documents'
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Some common aliases
|
|
|
|
# Some common aliases
|
|
|
@ -56,7 +59,6 @@ alias simple-http-server='python -m SimpleHTTPServer'
|
|
|
|
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
|
|
|
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
|
|
|
alias deepgrep='find . -type f | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
|
|
|
|
alias deepgrep='find . -type f | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
|
|
|
|
|
|
|
|
|
|
|
|
alias push-to-player="rsync -recursive --verbose --times --modify-window=1 --delete $pods_dir `mount -l | awk '/podcasts/ {print $3}'`/podcast/"
|
|
|
|
|
|
|
|
alias sync-pods="rsync --archive --verbose --compress --delete nas:~/podcasts/ $pods_dir"
|
|
|
|
alias sync-pods="rsync --archive --verbose --compress --delete nas:~/podcasts/ $pods_dir"
|
|
|
|
|
|
|
|
|
|
|
|
# Move around to common locations
|
|
|
|
# Move around to common locations
|
|
|
|