Skip to content

Commit c8320fa

Browse files
committed
docs
1 parent 519959e commit c8320fa

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

docs/4-Commands/kool-completion.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
## kool completion
2+
3+
Generate completion script
4+
5+
### Synopsis
6+
7+
To load completions:
8+
9+
Bash:
10+
11+
$ source <(kool completion bash)
12+
13+
# To load completions for each session, execute once:
14+
Linux:
15+
$ kool completion bash > /etc/bash_completion.d/kool
16+
MacOS:
17+
$ kool completion bash > /usr/local/etc/bash_completion.d/kool
18+
19+
Zsh:
20+
21+
# If shell completion is not already enabled in your environment you will need
22+
# to enable it. You can execute the following once:
23+
24+
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
25+
26+
# To load completions for each session, execute once:
27+
$ kool completion zsh > "${fpath[1]}/_kool"
28+
29+
# You will need to start a new shell for this setup to take effect.
30+
31+
Fish:
32+
33+
$ kool completion fish | source
34+
35+
# To load completions for each session, execute once:
36+
$ kool completion fish > ~/.config/fish/completions/kool.fish
37+
38+
39+
```
40+
kool completion [bash|zsh|fish|powershell]
41+
```
42+
43+
### Options
44+
45+
```
46+
-h, --help help for completion
47+
```
48+
49+
### SEE ALSO
50+
51+
* [kool](kool.md) - kool - Kool stuff
52+

0 commit comments

Comments
 (0)