hmp completion#
$ hmp completion [-h] [-w WORKSPACE] {bash,zsh,fish}Print a shell completion script for bash, zsh, or fish
| Argument | What it does |
|---|---|
shell | Shell flavour to print completion for one of bash | zsh | fish |
Also takes the shared options --workspace.
Examples
$ hmp completion bash $ hmp completion fish
In bash or zsh, load the script in the current shell with eval "$(hmp completion bash)", or add that line to ~/.bashrc or ~/.zshrc. In fish, pipe it to source. The script asks hmp for the commands each time you press TAB, so it follows the commands that exist.