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