You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_chef_cookbooks_local() {
(for i in $( grep cookbook_path $HOME/.chef/knife.rb | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/' ); do ls $i; done)
}
This checks for a master knife.rb in the user's home directory. Is there a way to have this completion work more like cd and complete cookbooks / roles / data bags / etc based on current working directory (or relative to first found .chef directory searching through parents)?
The text was updated successfully, but these errors were encountered:
From https://github.com/zsh-users/zsh-completions/blob/master/src/_knife#L221-L223:
This checks for a master
knife.rb
in the user's home directory. Is there a way to have this completion work more likecd
and complete cookbooks / roles / data bags / etc based on current working directory (or relative to first found.chef
directory searching through parents)?The text was updated successfully, but these errors were encountered: