From 426e4c12828e2d82899e2d2b3d748008cca93a95 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 5 Nov 2012 10:57:28 -0800 Subject: [PATCH] Move linux only alias to not be included in os x In os x, I get a complant that mount doesn't know about the -l option --- bash/aliases | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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