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
This commit is contained in:
parent
c16ceb0b6c
commit
426e4c1282
12
bash/aliases
12
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user