dircycle.plugin.zsh 394 B

12345678910
  1. ##
  2. # dircycle plugin: enables cycling through the directory
  3. # stack using Ctrl+Shift+Left/Right
  4. eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }"
  5. zle -N insert-cycledleft
  6. bindkey "\e[1;6D" insert-cycledleft
  7. eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q -0'; zle accept-line }"
  8. zle -N insert-cycledright
  9. bindkey "\e[1;6C" insert-cycledright