Mercurial > hg > zsh-env
comparison zshrc-gentoo @ 1:e12c50e8ea8c
use the builtin HOST variable
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 28 Nov 2011 12:38:54 +0100 |
parents | 8b245298349a |
children | e8f909f0fb6f |
comparison
equal
deleted
inserted
replaced
0:8b245298349a | 1:e12c50e8ea8c |
---|---|
1 # | 1 # |
2 # zshrc-gentoo: gentoo specific initialization | 2 # zshrc-gentoo: gentoo specific initialization |
3 # | 3 # |
4 | 4 |
5 # keychain setup: authenticate to remote hosts only once | 5 # keychain setup: authenticate to remote hosts only once |
6 local hostname=`uname -n` | 6 local keychain_init_file=$HOME/.keychain/${HOST}-sh |
7 local keychain_init_file=$HOME/.keychain/${hostname}-sh | |
8 if [ -r ${keychain_init_file} ]; then | 7 if [ -r ${keychain_init_file} ]; then |
9 . ${keychain_init_file} | 8 . ${keychain_init_file} |
10 fi | 9 fi |
11 | 10 |
12 # custom environment variables | 11 # custom environment variables |
16 # custom aliases for gentoo | 15 # custom aliases for gentoo |
17 alias es="ionice -c3 emerge --sync" | 16 alias es="ionice -c3 emerge --sync" |
18 alias wu="emerge -uvDa world" | 17 alias wu="emerge -uvDa world" |
19 | 18 |
20 # custom functions for gentoo | 19 # custom functions for gentoo |
21 kcs() { source $HOME/.keychain/`uname -n`-sh } | 20 kcs() { source $HOME/.keychain/${HOST}-sh } |
22 | 21 |
23 unalias ll | 22 unalias ll |
24 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } | 23 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } |
25 | 24 |
26 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } | 25 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } |