Mercurial > hg > zsh-env
diff zshrc-gentoo @ 0:8b245298349a
zsh environment - initial import
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 28 Nov 2011 12:36:49 +0100 |
parents | |
children | e12c50e8ea8c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zshrc-gentoo Mon Nov 28 12:36:49 2011 +0100 @@ -0,0 +1,28 @@ +# +# zshrc-gentoo: gentoo specific initialization +# + +# keychain setup: authenticate to remote hosts only once +local hostname=`uname -n` +local keychain_init_file=$HOME/.keychain/${hostname}-sh +if [ -r ${keychain_init_file} ]; then + . ${keychain_init_file} +fi + +# custom environment variables +export EDITOR=/usr/bin/nano +export PATH="${PATH}":/opt/bin + +# custom aliases for gentoo +alias es="ionice -c3 emerge --sync" +alias wu="emerge -uvDa world" + +# custom functions for gentoo +kcs() { source $HOME/.keychain/`uname -n`-sh } + +unalias ll +ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } + +lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } +# TODO: completion from /etc/init.d +svc() { /etc/init.d/"$@" } \ No newline at end of file