2023-07-17 00:28:38 -07:00
|
|
|
### Homebrew Completions
|
|
|
|
# Source: https://docs.brew.sh/Shell-Completion#configuring-completions-in-fish
|
|
|
|
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
|
2023-08-06 22:19:59 -07:00
|
|
|
|
|
|
|
### Carapace
|
|
|
|
# Source: https://rsteube.github.io/carapace-bin/setup.html
|
|
|
|
mkdir -p ~/.config/fish/completions
|
|
|
|
carapace --list | awk '{print $1}' | xargs -I{} touch ~/.config/fish/completions/{}.fish # disable auto-loaded completions (#185)
|
|
|
|
carapace _carapace | source
|
|
|
|
|
2023-08-17 22:38:10 -07:00
|
|
|
### Google Cloud SDK
|
|
|
|
[ ! -f "$HOMEBREW_PREFIX/share/google-cloud-sdk/path.fish.inc" ] || source "$HOMEBREW_PREFIX/share/google-cloud-sdk/path.fish.inc"
|
|
|
|
|
2023-08-06 22:19:59 -07:00
|
|
|
### Up
|
2023-08-17 22:38:10 -07:00
|
|
|
source "${XDG_DATA_HOME:-$HOME/.local/share}/up/up.fish"
|