Skip to content

Instantly share code, notes, and snippets.

@iwaim
Created June 2, 2009 13:16
Show Gist options
  • Save iwaim/122228 to your computer and use it in GitHub Desktop.
Save iwaim/122228 to your computer and use it in GitHub Desktop.
#compdef pkg
typeset -A opt_args
local context state line
_arguments -s -S \
"(-R)--help[Displays a usage message.]" \
"(--help)-R+[dir]:package directory:_files -/" \
"1:package:(version purge-history rebuild-index)" \
&& return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment