Shell Completion¶
fabric-dw ships with tab-completion for bash, zsh, and fish via
Click's built-in shell completion.
Quick install¶
The easiest way to install completion for your shell is the built-in command:
This writes the script to the conventional location for your shell and prints the command you need to reload it.
Add --print to inspect the script before installing:
Manual setup¶
Add the following line to ~/.bashrc:
Then reload your shell:
Add the following line to ~/.zshrc:
Then reload your shell:
Save the completion script to the fish completions directory:
For a persistent installation, write it to a file:
Fish picks up files in ~/.config/fish/completions/ automatically on the
next shell start. To reload immediately: