Skip to content

Instantly share code, notes, and snippets.

@oppara
Forked from hchbaw/dirstack.zsh
Created February 27, 2011 17:17
Show Gist options
  • Save oppara/846344 to your computer and use it in GitHub Desktop.
Save oppara/846344 to your computer and use it in GitHub Desktop.
zaw.zsh source for the elements of the directory stack.
# zaw.zsh source for the elements of the directory stack.
# https://github.com/nakamuray/zaw
# Thank you very much, nakamuray!
zmodload zsh/parameter
function zaw-src-dirstack() {
: ${(A)candidates::=$dirstack}
actions=("zaw-callback-execute" "zaw-callback-replace-buffer" "zaw-callback-append-to-buffer")
act_descriptions=("execute" "replace edit buffer" "append to edit buffer")
}
zaw-register-src -n dirstack zaw-src-dirstack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment