X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Faliases.bashrc;h=3b3897b9ace11776573f1fa7c4cc09eb47a46e48;hb=736982b20af663fed7884dc39fe050eabdfbd511;hp=bb244a7e67b5c36336af880ccb49fa73e9b91430;hpb=673430dabda9c4f18b6fe94e5e4be5e28d488a68;p=profile.git diff --git a/.profile.d/aliases.bashrc b/.profile.d/aliases.bashrc index bb244a7..3b3897b 100644 --- a/.profile.d/aliases.bashrc +++ b/.profile.d/aliases.bashrc @@ -1,9 +1,9 @@ # $Id$ -grep -V | grep GNU &>/dev/null && alias grep='grep --color=auto' +grep -V 2>/dev/null | grep GNU >/dev/null && alias grep='grep --color=auto' alias knh='kill_known_host' alias l='ls' alias ls='/bin/ls $LS_OPTIONS' -if which vim &>/dev/null; then +if which vim 2>/dev/null | grep ^/ >/dev/null; then alias vim='vim +syn\ on' alias vi='vim' fi