]> git.rmz.io Git - dotfiles.git/blob - zsh/plugins/dircycle/dircycle.plugin.zsh
46a0ab268796c897de82a82c6108641446fb596c
[dotfiles.git] / zsh / plugins / dircycle / dircycle.plugin.zsh
1 ##
2 # dircycle plugin: enables cycling through the directory
3 # stack using Ctrl+Shift+Left/Right
4
5 eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }"
6 zle -N insert-cycledleft
7 bindkey "\e[1;6D" insert-cycledleft
8 eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q -0'; zle accept-line }"
9 zle -N insert-cycledright
10 bindkey "\e[1;6C" insert-cycledright