Adding basic autocomplete and helper for displaying chefvm in prompt

This commit is contained in:
Trae Robrock 2012-11-24 18:24:44 -08:00
commit 501a3f63f6
2 changed files with 10 additions and 0 deletions

5
plugins/chefvm/_chefvm Normal file
View file

@ -0,0 +1,5 @@
#compdef chefvm
_arguments \
"1:Commands:($(__chefvm_commands))" \
"*:Configurations:($(__chefvm_configs))"

View file

@ -0,0 +1,5 @@
function knife_config {
if [[ -e $HOME/.chefvm && -e $HOME/.chef ]] ; then
echo $( cd -P $HOME/.chef ; basename $PWD )
fi
}