Add completion configuration for non-Homebrew fish
Tested on Ubuntu 18.04 LTS
This commit is contained in:
parent
f1e4c4ed56
commit
7f651de7be
@ -54,4 +54,16 @@ Additionally, if you receive "zsh compinit: insecure directories" warnings when
|
|||||||
|
|
||||||
## Configuring Completions in `fish`
|
## 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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user