bash
cargo install dictate
Lookup "hello" in the dictionary
bash
dictate lookup hello
NOTE: This also caches the output for later lookup
s.
Clean up the cached entries
bash
dictate clean -c
Bash
Run the following
bash
mkdir -p ~/.local/share/bash-completion/completions
dictate complete bash > ~/.local/share/bash-completion/completions/rustup
Restart bash and you should have tab-completion now.
Zsh
Append ~/.zfunc
to fpath
in your zsh config
NOTICE: Make sure to insert the following line before initializing
compinit
.
bash
fpath+=("$HOME/.zfunc")
Create the appended directory and dump completion definition to
~/.zfunc/_dictate
bash
mkdir -p ~/.zfunc
dictate complete zsh > ~/.zfunc/_dictate
Restart zsh and you should have tab-completion now.
NOTE: In case it's not working yet, delete ~/.zcompdump
and restart
your shell again.
Fish
Run the following
fish
mkdir -p ~/.config/fish/completions
dictate complete fish > ~/.config/fish/completions/rustup.fish
Restart fish and you should have tab-completion now.