-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
519959e
commit c8320fa
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
## kool completion | ||
|
||
Generate completion script | ||
|
||
### Synopsis | ||
|
||
To load completions: | ||
|
||
Bash: | ||
|
||
$ source <(kool completion bash) | ||
|
||
# To load completions for each session, execute once: | ||
Linux: | ||
$ kool completion bash > /etc/bash_completion.d/kool | ||
MacOS: | ||
$ kool completion bash > /usr/local/etc/bash_completion.d/kool | ||
|
||
Zsh: | ||
|
||
# If shell completion is not already enabled in your environment you will need | ||
# to enable it. You can execute the following once: | ||
|
||
$ echo "autoload -U compinit; compinit" >> ~/.zshrc | ||
|
||
# To load completions for each session, execute once: | ||
$ kool completion zsh > "${fpath[1]}/_kool" | ||
|
||
# You will need to start a new shell for this setup to take effect. | ||
|
||
Fish: | ||
|
||
$ kool completion fish | source | ||
|
||
# To load completions for each session, execute once: | ||
$ kool completion fish > ~/.config/fish/completions/kool.fish | ||
|
||
|
||
``` | ||
kool completion [bash|zsh|fish|powershell] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for completion | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kool](kool.md) - kool - Kool stuff | ||
|