Created
November 8, 2011 15:37
-
-
Save lukasz-kaniowski/1348078 to your computer and use it in GitHub Desktop.
thor_completion - bash completion for thor
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
_thorcomplete() { | |
COMPREPLY=($(compgen -W "`thor list | grep thor | cut -d " " -f 2`" -- ${COMP_WORDS[COMP_CWORD]})) | |
return 0 | |
} | |
complete -o default -o nospace -F _thorcomplete thor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment