my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

3 years ago
  1. # knife plugin
  2. This plugin adds completion for [knife](https://docs.chef.io/knife.html), a command-line tool
  3. to interact with [Chef](https://chef.io), a platform to automate and manage infrastructure via
  4. code.
  5. To use it, add `knife` to the plugins array in your zshrc file:
  6. ```zsh
  7. plugins=(... knife)
  8. ```
  9. ## Options
  10. - `KNIFE_RELATIVE_PATH`: if set to `true`, the completion script will look for local cookbooks
  11. under the `cookbooks` folder in the chef root directory. It has preference over the other two
  12. options below. **Default:** empty.
  13. - `KNIFE_COOKBOOK_PATH`: if set, it points to the folder that contains local cookbooks, for
  14. example: `/path/to/my/chef/cookbooks`. **Default:** `cookbook_path` field in `knife.rb`
  15. (see below).
  16. - `KNIFE_CONF_PATH`: variable pointing to the `knife.rb` configuration file, for example
  17. `/path/to/my/.chef/knife.rb`. Only used if `$KNIFE_COOKBOOK_PATH` isn't set. If it exists,
  18. `$PWD/.chef/knife.rb` is used instead. Otherwise, if it's set, its value is used.
  19. **Default**: `$HOME/.chef/knife.rb`.