Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
13260744
Commit
13260744
authored
Dec 26, 2019
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
knife: add README and reformat completion file
parent
a952854c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
104 deletions
+136
-104
README.md
plugins/knife/README.md
+25
-0
_knife
plugins/knife/_knife
+111
-104
No files found.
plugins/knife/README.md
0 → 100644
View file @
13260744
# knife plugin
This plugin adds completion for
[
knife
](
https://docs.chef.io/knife.html
)
, a command-line tool
to interact with
[
Chef
](
https://chef.io
)
, a platform to automate and manage infrastructure via
code.
To use it, add
`knife`
to the plugins array in your zshrc file:
```
zsh
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`
.
plugins/knife/_knife
View file @
13260744
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment