Skip to content

Instantly share code, notes, and snippets.

@petems
Created August 22, 2013 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petems/6306944 to your computer and use it in GitHub Desktop.
Save petems/6306944 to your computer and use it in GitHub Desktop.
Tugboat bash completion... (WIP)
#!/usr/bin/env bash
_tugboatcomplete() {
COMPREPLY=($(compgen -W "`tugboat | grep "tugboat "`" -- ${COMP_WORDS[COMP_CWORD]}))
return 0
}
complete -o default -o nospace -F _tugboatcomplete tugboat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment