Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
contrib: update bash completion script
  • Loading branch information
Matthias Ruester committed Aug 31, 2012
1 parent 87dd847 commit ce8ac71
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions contrib/bee-completion.sh
Expand Up @@ -7,22 +7,16 @@ _bee_completion()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

bee_tools="check dep download init install list query remove"
bee_dep_options="rebuild update remove list conflicts"
bee_tools="cache check download init install list query remove update"

if [ "${prev}" = "bee" ]; then
COMPREPLY=( $(compgen -W "${bee_tools}" -- ${cur} ) )
return 0
fi

if [ "${prev}" = "dep" ]; then
COMPREPLY=( $(compgen -W "${bee_dep_options}" -- ${cur}) )
return 0
fi

packages="$(bee list -a)"
packages="${packages} $(bee list -i)"
COMPREPLY=( $(compgen -W "${packages}" -- ${cur}) )

return 0
}

Expand Down

0 comments on commit ce8ac71

Please sign in to comment.