|
@@ -124,10 +124,14 @@ zle -N dirhistory_zle_dirhistory_back
|
|
# xterm in normal mode
|
|
# xterm in normal mode
|
|
bindkey "\e[3D" dirhistory_zle_dirhistory_back
|
|
bindkey "\e[3D" dirhistory_zle_dirhistory_back
|
|
bindkey "\e[1;3D" dirhistory_zle_dirhistory_back
|
|
bindkey "\e[1;3D" dirhistory_zle_dirhistory_back
|
|
-# Mac teminal (alt+left/right)
|
|
|
|
-if [[ "$TERM_PROGRAM" == "Apple_Terminal" || "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
|
|
|
|
|
+# Terminal.app
|
|
|
|
+if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then
|
|
bindkey "^[b" dirhistory_zle_dirhistory_back
|
|
bindkey "^[b" dirhistory_zle_dirhistory_back
|
|
fi
|
|
fi
|
|
|
|
+# iTerm2
|
|
|
|
+if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
|
|
|
+ bindkey "^[^[[D" dirhistory_zle_dirhistory_back
|
|
|
|
+fi
|
|
# Putty:
|
|
# Putty:
|
|
bindkey "\e\e[D" dirhistory_zle_dirhistory_back
|
|
bindkey "\e\e[D" dirhistory_zle_dirhistory_back
|
|
# GNU screen:
|
|
# GNU screen:
|
|
@@ -136,9 +140,14 @@ bindkey "\eO3D" dirhistory_zle_dirhistory_back
|
|
zle -N dirhistory_zle_dirhistory_future
|
|
zle -N dirhistory_zle_dirhistory_future
|
|
bindkey "\e[3C" dirhistory_zle_dirhistory_future
|
|
bindkey "\e[3C" dirhistory_zle_dirhistory_future
|
|
bindkey "\e[1;3C" dirhistory_zle_dirhistory_future
|
|
bindkey "\e[1;3C" dirhistory_zle_dirhistory_future
|
|
-if [[ "$TERM_PROGRAM" == "Apple_Terminal" || "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
|
|
|
|
|
+# Terminal.app
|
|
|
|
+if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then
|
|
bindkey "^[f" dirhistory_zle_dirhistory_future
|
|
bindkey "^[f" dirhistory_zle_dirhistory_future
|
|
fi
|
|
fi
|
|
|
|
+# iTerm2
|
|
|
|
+if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
|
|
|
+ bindkey "^[^[[C" dirhistory_zle_dirhistory_future
|
|
|
|
+fi
|
|
bindkey "\e\e[C" dirhistory_zle_dirhistory_future
|
|
bindkey "\e\e[C" dirhistory_zle_dirhistory_future
|
|
bindkey "\eO3C" dirhistory_zle_dirhistory_future
|
|
bindkey "\eO3C" dirhistory_zle_dirhistory_future
|
|
|
|
|