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
main
Buddy Sandidge 12 years ago
parent c16ceb0b6c
commit 426e4c1282

@ -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

Loading…
Cancel
Save