Skip to content
Snippets Groups Projects
Commit a56b5a8e authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

add zsh autocomplete

parent c8ba5f65
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !111. Comments created here will be created in the context of that merge request.
...@@ -30,3 +30,17 @@ Or you can automatically source it at `bash` startup by adding this to your `~/. ...@@ -30,3 +30,17 @@ Or you can automatically source it at `bash` startup by adding this to your `~/.
``` ```
You can now enjoy semantic completion of the `./target/release/duniter` command using `<Tab>` key. You can now enjoy semantic completion of the `./target/release/duniter` command using `<Tab>` key.
## Zsh
Zsh equivalent
```sh
# make directory to store completion
mkdir -p ~/.zsh/completion
# write the completion script
cargo run --release -- completion --generator zsh > ~/.zsh/completion/_duniter.zsh
# add the following lines to your ~/.zshrc
fpath+=(~/.zsh/completion)
compinit # might slow down terminal startup
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment