]>
Commit | Line | Data |
---|---|---|
1 | # for interactive shell | |
2 | ||
3 | alias which=whence | |
4 | alias cd='builtin cd' | |
5 | alias precmd=' precmd' | |
6 | ||
7 | # SYSTEM WIDE ALIASES ETC. | |
8 | for i in `find /etc/shrc.d -name '*.sh' 2> /dev/null` ; do | |
9 | . $i | |
10 | done | |
11 | unset i | |
12 | ||
13 | setopt hist_ignore_space hist_ignore_all_dups list_packed transient_rprompt | |
14 | ||
15 | bindkey -e >/dev/null 2>&1 | |
16 | ||
17 | bindkey `tput khome` beginning-of-line >/dev/null 2>&1 | |
18 | bindkey `tput kend` end-of-line >/dev/null 2>&1 | |
19 | bindkey `tput kich1` quoted-insert >/dev/null 2>&1 | |
20 | bindkey `tput kdch1` delete-char >/dev/null 2>&1 | |
21 | bindkey `tput kpp` up-history >/dev/null 2>&1 | |
22 | bindkey `tput knp` end-of-history >/dev/null 2>&1 | |
23 | bindkey `tput kcuu1` history-beginning-search-backward >/dev/null 2>&1 | |
24 | bindkey `tput kcud1` history-beginning-search-forward >/dev/null 2>&1 | |
25 | ||
26 | PS1='[%n@%m %~]%(!.#.%\$) ' | |
27 | export PS1 | |
28 | ||
29 | case "$TERM" in | |
30 | xterm*|nxterm|gnome|rxvt) | |
31 | precmd () { print -Pn "\e]0;%n@%m: %~\a" } | |
32 | bindkey '^[[H' beginning-of-line >/dev/null 2>&1 | |
33 | bindkey '^[[F' end-of-line >/dev/null 2>&1 | |
34 | ;; | |
35 | esac |