diff options
author | Giuseppe Landolfi <giuseppe.landolfi@gmail.com> | 2018-01-23 04:18:45 +0100 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2018-01-22 19:18:45 -0800 |
commit | 215e43aa8ab4c660c0edb59ee4d8b3daceb456b5 (patch) | |
tree | 75218989c53f5b935031d1de2a46120b56ce8e80 /plugins/dirhistory | |
parent | ccf20b4b1747cd2f8804df15b8bd161a88a387c3 (diff) | |
download | zsh-215e43aa8ab4c660c0edb59ee4d8b3daceb456b5.tar.gz zsh-215e43aa8ab4c660c0edb59ee4d8b3daceb456b5.tar.bz2 zsh-215e43aa8ab4c660c0edb59ee4d8b3daceb456b5.zip |
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.
Diffstat (limited to 'plugins/dirhistory')
-rw-r--r-- | plugins/dirhistory/dirhistory.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh index 0209981e3..8138872bc 100644 --- a/plugins/dirhistory/dirhistory.plugin.zsh +++ b/plugins/dirhistory/dirhistory.plugin.zsh @@ -119,6 +119,8 @@ zle -N dirhistory_zle_dirhistory_back # xterm in normal mode bindkey "\e[3D" dirhistory_zle_dirhistory_back bindkey "\e[1;3D" dirhistory_zle_dirhistory_back +# Mac teminal (alt+left/right) +bindkey "^[b" dirhistory_zle_dirhistory_back # Putty: bindkey "\e\e[D" dirhistory_zle_dirhistory_back # GNU screen: @@ -127,6 +129,7 @@ bindkey "\eO3D" dirhistory_zle_dirhistory_back zle -N dirhistory_zle_dirhistory_future bindkey "\e[3C" dirhistory_zle_dirhistory_future bindkey "\e[1;3C" dirhistory_zle_dirhistory_future +bindkey "^[f" dirhistory_zle_dirhistory_future bindkey "\e\e[C" dirhistory_zle_dirhistory_future bindkey "\eO3C" dirhistory_zle_dirhistory_future |