Skip to content

Commit

Permalink
docs: add bin name to mise g completion examples
Browse files Browse the repository at this point in the history
Fixes #142
  • Loading branch information
jdx committed Oct 30, 2024
1 parent a664fe3 commit 8892b5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/cli/completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
Usage can generate completion scripts for any shell. Here is an example for bash:

```sh-session
usage g completion bash -f ./mycli.usage.kdl > ~/.bash_completions/mycli.bash
usage g completion bash mycli -f ./mycli.usage.kdl > ~/.bash_completions/mycli.bash
source ~/.bash_completions/mycli.bash
mycli --<TAB>
```

zsh:

```sh-session
usage g completion zsh -f ./mycli.usage.kdl > ~/.zsh_completions/_mycli
usage g completion zsh mycli -f ./mycli.usage.kdl > ~/.zsh_completions/_mycli
source ~/.zsh_completions/_mycli
mycli --<TAB>
```

fish:

```sh-session
usage g completion fish -f ./mycli.usage.kdl > ~/.config/fish/completions/mycli.fish
usage g completion fish mycli -f ./mycli.usage.kdl > ~/.config/fish/completions/mycli.fish
mycli --<TAB>
```

Expand Down

0 comments on commit 8892b5b

Please sign in to comment.