comparison zshrc @ 19:f5c6324fc952

remove aliases only if they exist
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 26 Jan 2012 16:32:35 +0100
parents f6fdf0fe99c3
children ee88f708d3ce
comparison
equal deleted inserted replaced
18:e8f909f0fb6f 19:f5c6324fc952
9 ZSH=/var/lib/zsh/oh-my-zsh 9 ZSH=/var/lib/zsh/oh-my-zsh
10 . $HOME/.zsh-env/oh-my-zsh 10 . $HOME/.zsh-env/oh-my-zsh
11 fi 11 fi
12 12
13 # get rid of some unwanted aliases from the oh-my-zsh env 13 # get rid of some unwanted aliases from the oh-my-zsh env
14 unalias l 14 if [ "`alias | grep 'l='`" != "" ]; then
15 unalias lsa 15 unalias l
16 fi
17 if [ "`alias | grep 'lsa='`" != "" ]; then
18 unalias lsa
19 fi
16 20
17 # custom function that should work on all platforms 21 # custom function that should work on all platforms
18 cd() { builtin cd "$@"; print -D $PWD; } 22 cd() { builtin cd "$@"; print -D $PWD; }
19 ff() { find $2 -print0 | xargs -0 grep $1 } 23 ff() { find $2 -print0 | xargs -0 grep $1 }
20 hgrep() { history | grep $* } 24 hgrep() { history | grep $* }