Mercurial > hg > zsh-env
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b245298349a |
---|---|
1 # | |
2 # zshrc-gentoo: gentoo specific initialization | |
3 # | |
4 | |
5 # keychain setup: authenticate to remote hosts only once | |
6 local hostname=`uname -n` | |
7 local keychain_init_file=$HOME/.keychain/${hostname}-sh | |
8 if [ -r ${keychain_init_file} ]; then | |
9 . ${keychain_init_file} | |
10 fi | |
11 | |
12 # custom environment variables | |
13 export EDITOR=/usr/bin/nano | |
14 export PATH="${PATH}":/opt/bin | |
15 | |
16 # custom aliases for gentoo | |
17 alias es="ionice -c3 emerge --sync" | |
18 alias wu="emerge -uvDa world" | |
19 | |
20 # custom functions for gentoo | |
21 kcs() { source $HOME/.keychain/`uname -n`-sh } | |
22 | |
23 unalias ll | |
24 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } | |
25 | |
26 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } | |
27 # TODO: completion from /etc/init.d | |
28 svc() { /etc/init.d/"$@" } |