]>
Commit | Line | Data |
---|---|---|
3cad6678 TP |
1 | # for interactive shell |
2 | ||
3 | alias which=whence | |
4 | alias cd='builtin cd' | |
5 | alias precmd=' precmd' | |
6 | ||
0535ffe2 | 7 | setopt hist_ignore_space hist_ignore_all_dups list_packed transient_rprompt |
adef8d5b | 8 | |
3cad6678 TP |
9 | bindkey -e >/dev/null 2>&1 |
10 | ||
11 | bindkey `tput khome` beginning-of-line >/dev/null 2>&1 | |
12 | bindkey `tput kend` end-of-line >/dev/null 2>&1 | |
13 | bindkey `tput kich1` quoted-insert >/dev/null 2>&1 | |
14 | bindkey `tput kdch1` delete-char >/dev/null 2>&1 | |
15 | bindkey `tput kpp` up-history >/dev/null 2>&1 | |
16 | bindkey `tput knp` end-of-history >/dev/null 2>&1 | |
17 | bindkey `tput kcuu1` history-beginning-search-backward >/dev/null 2>&1 | |
18 | bindkey `tput kcud1` history-beginning-search-forward >/dev/null 2>&1 | |
19 | ||
20 | case "$TERM" in | |
21 | xterm*) | |
97724a83 | 22 | precmd () { print -Pn "\e]0;%n@%m: %~\a" } |
3cad6678 TP |
23 | bindkey '^[[H' beginning-of-line >/dev/null 2>&1 |
24 | bindkey '^[[F' end-of-line >/dev/null 2>&1 | |
25 | ;; | |
26 | esac |