comparison zshrc-gentoo @ 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 e8f909f0fb6f
children aeab5ab060f5
comparison
equal deleted inserted replaced
18:e8f909f0fb6f 19:f5c6324fc952
17 alias wu="emerge -uvDa world" 17 alias wu="emerge -uvDa world"
18 18
19 # custom functions for gentoo 19 # custom functions for gentoo
20 kcs() { source $HOME/.keychain/${HOST}-sh } 20 kcs() { source $HOME/.keychain/${HOST}-sh }
21 21
22 unalias ll 22 if [ "`alias | grep 'll='`" != "" ]; then
23 unalias ll
24 fi
23 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } 25 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more }
24 26
25 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } 27 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" }
26 service() { /etc/init.d/"$@" } 28 service() { /etc/init.d/"$@" }