Skip to content

Commit 3ca67ef

Browse files
committed
add fish to shell auto-completions
1 parent f3c4516 commit 3ca67ef

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

doc/shell_autocompletion.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# Shell auto-completion
44

5-
The following adds support for the tab completion of standard Stack arguments in
6-
the Bash shell or the Z shell (Zsh). Completion of file names and executables
7-
within Stack is still lacking. For further information, see issue
8-
[#823](https://github.com/commercialhaskell/stack/issues/832).
5+
The following adds support for the tab completion of standard Stack arguments to
6+
some of the more popular shell programs: Bash, zsh, and fish. Completion of file
7+
names and executables within Stack is still lacking. For further information,
8+
see issue [#823](https://github.com/commercialhaskell/stack/issues/832).
99

1010
=== "Bash"
1111

@@ -68,3 +68,12 @@ within Stack is still lacking. For further information, see issue
6868

6969
If you already have quite a large `.zshrc` file, or if you use
7070
`oh-my-zsh`, `compinit` will probably already be loaded.
71+
72+
=== "Fish"
73+
74+
Add the output of the following command to your preferred completions file
75+
(e.g. `~/.config/fish/completions/stack.fish`).
76+
77+
~~~fish
78+
stack --fish-completion-script stack
79+
~~~

0 commit comments

Comments
 (0)