Shell auto-completion¶
The following adds support for the tab completion of standard Stack arguments to the following shell programs: Bash, Zsh (the Z shell) and fish. Completion of file names and executables within Stack is still lacking. For further information, see issue #823.
Info
Stack's completion library provides hidden options for Bash, Zsh, and fish which output commands used for shell auto-completion. For example:
Add the output of the following command to your preferred completions file
(e.g. ~/.config/bash_completions.d/stack
).
You may need to source
this.
Add the output of the following command to your preferred completions file
(e.g. ~/.config/zsh/completions/_stack
).
You won't need to source
this, but do update your fpath
: