From 501a3f63f6d5d9f020da9e53c73e77d4f13286f6 Mon Sep 17 00:00:00 2001 From: Trae Robrock Date: Sat, 24 Nov 2012 18:24:44 -0800 Subject: [PATCH] Adding basic autocomplete and helper for displaying chefvm in prompt --- plugins/chefvm/_chefvm | 5 +++++ plugins/chefvm/chefvm.plugin.zsh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 plugins/chefvm/_chefvm create mode 100644 plugins/chefvm/chefvm.plugin.zsh diff --git a/plugins/chefvm/_chefvm b/plugins/chefvm/_chefvm new file mode 100644 index 000000000..8bc86fba2 --- /dev/null +++ b/plugins/chefvm/_chefvm @@ -0,0 +1,5 @@ +#compdef chefvm + +_arguments \ + "1:Commands:($(__chefvm_commands))" \ + "*:Configurations:($(__chefvm_configs))" diff --git a/plugins/chefvm/chefvm.plugin.zsh b/plugins/chefvm/chefvm.plugin.zsh new file mode 100644 index 000000000..7ead4762d --- /dev/null +++ b/plugins/chefvm/chefvm.plugin.zsh @@ -0,0 +1,5 @@ +function knife_config { + if [[ -e $HOME/.chefvm && -e $HOME/.chef ]] ; then + echo $( cd -P $HOME/.chef ; basename $PWD ) + fi +}