Skip to content

Commit

Permalink
Merge pull request #7894 from gromgit/patch-1
Browse files Browse the repository at this point in the history
Add completion configuration for non-Homebrew fish
  • Loading branch information
MikeMcQuaid committed Jul 3, 2020
2 parents f1e4c4e + 125ed8c commit 42d865a
Showing 1 changed file with 13 additions and 1 deletion.
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 -gx fish_complete_path $fish_complete_path (brew --prefix)/share/fish/completions
end

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

0 comments on commit 42d865a

Please sign in to comment.