Skip to content

Instantly share code, notes, and snippets.

@bunnymatic
Created December 23, 2012 23:39
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 bunnymatic/4366744 to your computer and use it in GitHub Desktop.
Save bunnymatic/4366744 to your computer and use it in GitHub Desktop.
Bash completion script for mperham/lunchy gem
__from_lunchy_list() {
COMPREPLY=()
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=($(compgen -W '$(lunchy list)' -- $cur))
}
complete -F __from_lunchy_list -o default lunchy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment