.zshrc

changeset 808
31133d3dbc98
parent 807
afc9c88b4897
child 835
49826fe1c850
equal deleted inserted replaced
807:afc9c88b4897 808:31133d3dbc98
58 [[ -n "${terminfo[kcuf1]}" ]] && bindkey -- "${terminfo[kcuf1]}" forward-char 58 [[ -n "${terminfo[kcuf1]}" ]] && bindkey -- "${terminfo[kcuf1]}" forward-char
59 [[ -n "${terminfo[kpp]}" ]] && bindkey -- "${terminfo[kpp]}" beginning-of-buffer-or-history 59 [[ -n "${terminfo[kpp]}" ]] && bindkey -- "${terminfo[kpp]}" beginning-of-buffer-or-history
60 [[ -n "${terminfo[knp]}" ]] && bindkey -- "${terminfo[knp]}" end-of-buffer-or-history 60 [[ -n "${terminfo[knp]}" ]] && bindkey -- "${terminfo[knp]}" end-of-buffer-or-history
61 [[ -n "${terminfo[kcbt]}" ]] && bindkey -- "${terminfo[kcbt]}" reverse-menu-complete 61 [[ -n "${terminfo[kcbt]}" ]] && bindkey -- "${terminfo[kcbt]}" reverse-menu-complete
62 62
63 # Finally, make sure the terminal is in application mode, when zle is
64 # active. Only then are the values from $terminfo valid.
65 if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
66 autoload -Uz add-zle-hook-widget
67 function zle_application_mode_start {
68 echoti smkx
69 }
70 function zle_application_mode_stop {
71 echoti rmkx
72 }
73 add-zle-hook-widget -Uz zle-line-init zle_application_mode_start
74 add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
75 fi
76
77 source ~/.profile.common 63 source ~/.profile.common
78 64
79 for envthing in $envthings; do 65 for envthing in $envthings; do
80 if [ -d ~/.$envthing ]; then 66 if [ -d ~/.$envthing ]; then
81 path[1,0]="$HOME/.$envthing/bin" 67 path[1,0]="$HOME/.$envthing/bin"

mercurial