Skip to content

Instantly share code, notes, and snippets.

@srijanshetty
Created May 21, 2015 05:21
Show Gist options
  • Save srijanshetty/09df9bd9c7277b2b5519 to your computer and use it in GitHub Desktop.
Save srijanshetty/09df9bd9c7277b2b5519 to your computer and use it in GitHub Desktop.
ZSH static completions
#compdef repos
typeset -A opt_args
local context state line
_arguments -s -S \
'--add-git[add a github configuration]'\
'--add-bit[add a bitbucket configuration]'\
'--available[List all available configurations.]'\
'--check[list all repos not in mrconfig]'\
'--disable[disable given configuration]'\
'--enable[enable given configuration]'\
'--list[list current configurations]'\
'--only[only enable a configuration]'\
&& return 0
return 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment