Select Git revision
rust-toolchain
autocompletion.md 1.14 KiB
Autocompletion
You can generate autocompletion for your favorite shell using the following option:
cargo run -- completion --generator <GENERATOR>
Where GENERATOR
can be any of bash
, elvish
, fish
, powershell
and zsh
.
Bash
First, get the completion file in a known place:
mkdir -p ~/.local/share/duniter
cargo run -- completion --generator bash > ~/.local/share/duniter/completion.bash
You can now manually source the file when needed:
source ~/.local/share/duniter/completion.bash
Or you can automatically source it at bash
startup by adding this to your ~/.bashrc
file: