Skip to content

Commit

Permalink
Merge pull request #14 from bookest/config-completion
Browse files Browse the repository at this point in the history
Complete config names as well as commands
  • Loading branch information
trobrock committed Dec 5, 2013
2 parents 5f50f3a + 93426e8 commit 2417e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completions/chefvm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ _chefvm() {
local word="${COMP_WORDS[COMP_CWORD]}"

if [ "$COMP_CWORD" -eq 1 ]; then
COMPREPLY=( $(compgen -W "$(chefvm commands)" -- "$word") )
COMPREPLY=( $(compgen -W "$(chefvm commands) $(chefvm completions use)" -- "$word") )
else
local command="${COMP_WORDS[1]}"
local completions="$(chefvm completions "$command")"
Expand Down
2 changes: 1 addition & 1 deletion completions/chefvm.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _chefvm() {
word="${words[2]}"

if [ "${#words}" -eq 2 ]; then
completions="$(chefvm commands)"
completions="$(chefvm commands) $(chefvm completions use)"
else
completions="$(chefvm completions "${word}")"
fi
Expand Down

0 comments on commit 2417e05

Please sign in to comment.