diff options
author | Peter Tillemans <pti@snamellit.com> | 2012-06-18 10:45:07 +0200 |
---|---|---|
committer | Peter Tillemans <pti@snamellit.com> | 2012-06-18 10:45:07 +0200 |
commit | 8b69c7f6a0c80c1c53505e17d356387b83e18efc (patch) | |
tree | c76fc91c12ef4f1ecc52f888a92c3472f8ae8c55 /plugins/dircycle | |
parent | 3f42fd000c2110ec8647d341cb69a31ebbbe9b4e (diff) | |
parent | e8d582aba98d57214a374bed01570ba791c54d9e (diff) | |
download | zsh-8b69c7f6a0c80c1c53505e17d356387b83e18efc.tar.gz zsh-8b69c7f6a0c80c1c53505e17d356387b83e18efc.tar.bz2 zsh-8b69c7f6a0c80c1c53505e17d356387b83e18efc.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/dircycle')
-rw-r--r-- | plugins/dircycle/dircycle.plugin.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/dircycle/dircycle.plugin.zsh b/plugins/dircycle/dircycle.plugin.zsh new file mode 100644 index 000000000..46a0ab268 --- /dev/null +++ b/plugins/dircycle/dircycle.plugin.zsh @@ -0,0 +1,10 @@ +## +# dircycle plugin: enables cycling through the directory +# stack using Ctrl+Shift+Left/Right + +eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }" +zle -N insert-cycledleft +bindkey "\e[1;6D" insert-cycledleft +eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q -0'; zle accept-line }" +zle -N insert-cycledright +bindkey "\e[1;6C" insert-cycledright |