]> git.pld-linux.org Git - packages/zsh.git/blame - zshrc
- added alias grep='grep --colour=auto'
[packages/zsh.git] / zshrc
CommitLineData
3cad6678
TP
1# for interactive shell
2
3alias which=whence
4alias cd='builtin cd'
332c0935 5alias grep='grep --colour=auto'
3cad6678
TP
6alias precmd=' precmd'
7
7d939b92 8# SYSTEM WIDE ALIASES ETC.
430440ca 9for i in `find /etc/shrc.d -name '*.sh' 2> /dev/null` ; do
7d939b92 10 . $i
11done
12unset i
13
0535ffe2 14setopt hist_ignore_space hist_ignore_all_dups list_packed transient_rprompt
adef8d5b 15
3cad6678
TP
16bindkey -e >/dev/null 2>&1
17
18bindkey `tput khome` beginning-of-line >/dev/null 2>&1
19bindkey `tput kend` end-of-line >/dev/null 2>&1
20bindkey `tput kich1` quoted-insert >/dev/null 2>&1
21bindkey `tput kdch1` delete-char >/dev/null 2>&1
22bindkey `tput kpp` up-history >/dev/null 2>&1
23bindkey `tput knp` end-of-history >/dev/null 2>&1
24bindkey `tput kcuu1` history-beginning-search-backward >/dev/null 2>&1
25bindkey `tput kcud1` history-beginning-search-forward >/dev/null 2>&1
26
4f928441
PG
27PS1='[%n@%m %~]%(!.#.%\$) '
28export PS1
29
3cad6678 30case "$TERM" in
4f928441 31 xterm*|nxterm|gnome|rxvt)
97724a83 32 precmd () { print -Pn "\e]0;%n@%m: %~\a" }
3cad6678
TP
33 bindkey '^[[H' beginning-of-line >/dev/null 2>&1
34 bindkey '^[[F' end-of-line >/dev/null 2>&1
65df4e3b
TP
35 bindkey '^[[A' history-beginning-search-backward >/dev/null 2>&1
36 bindkey '^[[B' history-beginning-search-forward >/dev/null 2>&1
3cad6678
TP
37 ;;
38esac
This page took 0.118779 seconds and 4 git commands to generate.