|
|
|
@ -129,6 +129,9 @@ case "$TERM_PROGRAM" in |
|
|
|
iTerm.app) bindkey "^[^[[D" dirhistory_zle_dirhistory_back ;; # iTerm2 |
|
|
|
iTerm.app) bindkey "^[^[[D" dirhistory_zle_dirhistory_back ;; # iTerm2 |
|
|
|
Apple_Terminal) bindkey "^[b" dirhistory_zle_dirhistory_back ;; # Terminal.app |
|
|
|
Apple_Terminal) bindkey "^[b" dirhistory_zle_dirhistory_back ;; # Terminal.app |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
if (( ${+terminfo[kcub1]} )); then |
|
|
|
|
|
|
|
bindkey "^[${terminfo[kcub1]}" dirhistory_zle_dirhistory_back # urxvt |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
zle -N dirhistory_zle_dirhistory_future |
|
|
|
zle -N dirhistory_zle_dirhistory_future |
|
|
|
bindkey "\e[3C" dirhistory_zle_dirhistory_future # xterm in normal mode |
|
|
|
bindkey "\e[3C" dirhistory_zle_dirhistory_future # xterm in normal mode |
|
|
|
@ -139,6 +142,9 @@ case "$TERM_PROGRAM" in |
|
|
|
iTerm.app) bindkey "^[^[[C" dirhistory_zle_dirhistory_future ;; # iTerm2 |
|
|
|
iTerm.app) bindkey "^[^[[C" dirhistory_zle_dirhistory_future ;; # iTerm2 |
|
|
|
Apple_Terminal) bindkey "^[f" dirhistory_zle_dirhistory_future ;; # Terminal.app |
|
|
|
Apple_Terminal) bindkey "^[f" dirhistory_zle_dirhistory_future ;; # Terminal.app |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
if (( ${+terminfo[kcuf1]} )); then |
|
|
|
|
|
|
|
bindkey "^[${terminfo[kcuf1]}" dirhistory_zle_dirhistory_future # urxvt |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
|
# |
|
|
|
@ -178,6 +184,9 @@ case "$TERM_PROGRAM" in |
|
|
|
iTerm.app) bindkey "^[^[[A" dirhistory_zle_dirhistory_up ;; # iTerm2 |
|
|
|
iTerm.app) bindkey "^[^[[A" dirhistory_zle_dirhistory_up ;; # iTerm2 |
|
|
|
Apple_Terminal) bindkey "^[OA" dirhistory_zle_dirhistory_up ;; # Terminal.app |
|
|
|
Apple_Terminal) bindkey "^[OA" dirhistory_zle_dirhistory_up ;; # Terminal.app |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
if (( ${+terminfo[kcuu1]} )); then |
|
|
|
|
|
|
|
bindkey "^[${terminfo[kcuu1]}" dirhistory_zle_dirhistory_up # urxvt |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
zle -N dirhistory_zle_dirhistory_down |
|
|
|
zle -N dirhistory_zle_dirhistory_down |
|
|
|
bindkey "\e[3B" dirhistory_zle_dirhistory_down # xterm in normal mode |
|
|
|
bindkey "\e[3B" dirhistory_zle_dirhistory_down # xterm in normal mode |
|
|
|
@ -188,3 +197,6 @@ case "$TERM_PROGRAM" in |
|
|
|
iTerm.app) bindkey "^[^[[B" dirhistory_zle_dirhistory_down ;; # iTerm2 |
|
|
|
iTerm.app) bindkey "^[^[[B" dirhistory_zle_dirhistory_down ;; # iTerm2 |
|
|
|
Apple_Terminal) bindkey "^[OB" dirhistory_zle_dirhistory_down ;; # Terminal.app |
|
|
|
Apple_Terminal) bindkey "^[OB" dirhistory_zle_dirhistory_down ;; # Terminal.app |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
if (( ${+terminfo[kcud1]} )); then |
|
|
|
|
|
|
|
bindkey "^[${terminfo[kcud1]}" dirhistory_zle_dirhistory_down # urxvt |
|
|
|
|
|
|
|
fi |
|
|
|
|