215e43aa8ab4c660c0edb59ee4d8b3daceb456b5
Author Giuseppe Landolfi <giuseppe.landolfi@gmail.com> Committer Robby Russell <robby@planetargon.com> Date 2018-01-23 03:18 UTC
Message Add support for Mac to dirhistory plugin (#6533)
Add shortcuts for mac keyboards as an alternative to alt+left
abd alt+right: mac users can now use opt+left and opt+right.
Diff 1 diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh
2 index 0209981e31f463a30cc6d65f0b58c5d19c280c34..8138872bc4d2f168e115e2808ab96e5aac2d2db0 100644
3 --- a/plugins/dirhistory/dirhistory.plugin.zsh
4 +++ b/plugins/dirhistory/dirhistory.plugin.zsh
5 @@ -119,6 +119,8 @@ zle -N dirhistory_zle_dirhistory_back
6 # xterm in normal mode
7 bindkey "\e[3D" dirhistory_zle_dirhistory_back
8 bindkey "\e[1;3D" dirhistory_zle_dirhistory_back
9 +# Mac teminal (alt+left/right)
10 +bindkey "^[b" dirhistory_zle_dirhistory_back
11 # Putty:
12 bindkey "\e\e[D" dirhistory_zle_dirhistory_back
13 # GNU screen:
14 @@ -127,6 +129,7 @@ bindkey "\eO3D" dirhistory_zle_dirhistory_back
15 zle -N dirhistory_zle_dirhistory_future
16 bindkey "\e[3C" dirhistory_zle_dirhistory_future
17 bindkey "\e[1;3C" dirhistory_zle_dirhistory_future
18 +bindkey "^[f" dirhistory_zle_dirhistory_future
19 bindkey "\e\e[C" dirhistory_zle_dirhistory_future
20 bindkey "\eO3C" dirhistory_zle_dirhistory_future
21