Created
May 2, 2012 06:12
-
-
Save glidenote/2574327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| compdef _hogecmd hoge | |
| function _hogecmd { | |
| local -a cmds | |
| if (( CURRENT == 2 ));then | |
| cmds=('init' 'update' 'upgrade' 'commit') | |
| _describe -t commands "subcommand" cmds | |
| else | |
| _files | |
| fi | |
| return 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment