Mercurial > hg > zsh-env
annotate zshrc-gentoo @ 39:46fb22ffffa8
disable history search on key-up
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 29 Aug 2013 09:16:57 +0200 |
parents | f5c6324fc952 |
children | aeab5ab060f5 |
rev | line source |
---|---|
0
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # zshrc-gentoo: gentoo specific initialization |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 # keychain setup: authenticate to remote hosts only once |
1
e12c50e8ea8c
use the builtin HOST variable
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
0
diff
changeset
|
6 local keychain_init_file=$HOME/.keychain/${HOST}-sh |
0
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 if [ -r ${keychain_init_file} ]; then |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 . ${keychain_init_file} |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 fi |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 # custom environment variables |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 export EDITOR=/usr/bin/nano |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 export PATH="${PATH}":/opt/bin |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 # custom aliases for gentoo |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 alias es="ionice -c3 emerge --sync" |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 alias wu="emerge -uvDa world" |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 # custom functions for gentoo |
1
e12c50e8ea8c
use the builtin HOST variable
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
0
diff
changeset
|
20 kcs() { source $HOME/.keychain/${HOST}-sh } |
0
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
19
f5c6324fc952
remove aliases only if they exist
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
18
diff
changeset
|
22 if [ "`alias | grep 'll='`" != "" ]; then |
f5c6324fc952
remove aliases only if they exist
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
18
diff
changeset
|
23 unalias ll |
f5c6324fc952
remove aliases only if they exist
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
18
diff
changeset
|
24 fi |
0
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 |
8b245298349a
zsh environment - initial import
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } |
18
e8f909f0fb6f
rename the svc alias to "service": this is in line with what CentOS uses and has autocomplete enabled already
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
1
diff
changeset
|
28 service() { /etc/init.d/"$@" } |