Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add completion configuration for non-Homebrew fish #7894

Merged
merged 2 commits into from
Jul 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/Shell-Completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,16 @@ Additionally, if you receive "zsh compinit: insecure directories" warnings when

## Configuring Completions in `fish`

No configuration is needed in `fish`. Friendly!
No configuration is needed if you're using Homebrew's `fish`. Friendly!

If your `fish` is from somewhere else, add the following to your `~/.config/fish/config.fish`:

```sh
if test -d (brew --prefix)"/share/fish/completions"
set -g -x fish_complete_path $fish_complete_path (brew --prefix)/share/fish/completions
end

if test -d (brew --prefix)"/share/fish/vendor_completions.d"
set -g -x fish_complete_path $fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
end
```