This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-old/dot_oh-my-zsh/plugins/knife
2024-03-03 15:33:59 +01:00
..
_knife Added basic nvim config, replaced vim with nvim 2024-03-03 15:33:59 +01:00
README.md Added basic nvim config, replaced vim with nvim 2024-03-03 15:33:59 +01:00

knife plugin

This plugin adds completion for knife, a command-line tool to interact with Chef, a platform to automate and manage infrastructure via code.

To use it, add knife to the plugins array in your zshrc file:

plugins=(... knife)

Options

  • KNIFE_RELATIVE_PATH: if set to true, the completion script will look for local cookbooks under the cookbooks folder in the chef root directory. It has preference over the other two options below. Default: empty.

  • KNIFE_COOKBOOK_PATH: if set, it points to the folder that contains local cookbooks, for example: /path/to/my/chef/cookbooks. Default: cookbook_path field in knife.rb (see below).

  • KNIFE_CONF_PATH: variable pointing to the knife.rb configuration file, for example /path/to/my/.chef/knife.rb. Only used if $KNIFE_COOKBOOK_PATH isn't set. If it exists, $PWD/.chef/knife.rb is used instead. Otherwise, if it's set, its value is used. Default: $HOME/.chef/knife.rb.