Update aliases for OS X

main
Buddy Sandidge 6 years ago
parent 60ba9b27ae
commit c9fc813e19

@ -8,14 +8,17 @@ if [[ $(uname) == Darwin ]]; then
music_dir='~/Music' music_dir='~/Music'
desktop_dir='~/Desktop' desktop_dir='~/Desktop'
docs_dir='~/Documents' docs_dir='~/Documents'
alias ls='ls -G'
fi fi
if [[ $(uname) == Linux ]]; then
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias dir='dir --color=auto' alias dir='dir --color=auto'
alias vdir='vdir --color=auto' alias vdir='vdir --color=auto'
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'
fi
# Move around to common locations # Move around to common locations
alias desktop="cd $desktop_dir" alias desktop="cd $desktop_dir"
@ -54,5 +57,6 @@ alias take='sudo chown `whoami`:`whoami` '
alias simple-http-server='python -m SimpleHTTPServer' 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 -not -name "*.swp" -not -name "*.pyc" | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color ' alias deepgrep='find . -type f -not -name "*.swp" -not -name "*.pyc" | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
# Show list of git branches # Show list of git branches
alias git-br='for k in `git branch|perl -pe s/^..//`; do echo -e ` git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r' alias git-br='for k in `git branch|perl -pe s/^..//`; do echo -e ` git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r'

Loading…
Cancel
Save