Skip to content

Instantly share code, notes, and snippets.

@lukasz-kaniowski
Created November 8, 2011 15:37
Show Gist options
  • Save lukasz-kaniowski/1348078 to your computer and use it in GitHub Desktop.
Save lukasz-kaniowski/1348078 to your computer and use it in GitHub Desktop.
thor_completion - bash completion for thor
_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