Skip to content

Instantly share code, notes, and snippets.

@tmerse
Created April 25, 2016 13:51
Show Gist options
  • Save tmerse/851722c0c03cd442265ec523500c78c6 to your computer and use it in GitHub Desktop.
Save tmerse/851722c0c03cd442265ec523500c78c6 to your computer and use it in GitHub Desktop.
zsh autocompletion for dasht
#compdef dasht
_main() {
local commands
commands=(`dasht-docsets 2>/dev/null`)
if (( CURRENT >= 3 )); then
_describe -t commands 'commands' commands
fi
return 0
}
_main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment