diff --git a/bash/aliases b/bash/aliases index 24306ef..674d674 100644 --- a/bash/aliases +++ b/bash/aliases @@ -11,6 +11,13 @@ if [[ `uname` == 'Darwin' ]]; then music_dir='~/Music' desktop_dir='~/Desktop' 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 # 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 fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' - - music_dir='~/music' - desktop_dir='~/desktop' - docs_dir='~/documents' fi # Some common aliases @@ -56,7 +59,6 @@ alias simple-http-server='python -m SimpleHTTPServer' alias numfiles='find . -maxdepth 1 -type f | wc -l' 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" # Move around to common locations