Skip to content

Instantly share code, notes, and snippets.

@byroot
Created November 2, 2011 10:42
Show Gist options
  • Select an option

  • Save byroot/1333370 to your computer and use it in GitHub Desktop.

Select an option

Save byroot/1333370 to your computer and use it in GitHub Desktop.
Powder bash completion
_powder() {
local POW_COMMANDS='applog config down help install link list log open remove restart status uninstall up version'
local cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "$POW_COMMANDS" -- "$cur") )
return 0
}
complete -F _powder powder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment