install.fairie/home/dot_config/fish/config.fish

22 lines
902 B
Fish
Raw Normal View History

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
### 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
source "${XDG_DATA_HOME:-$HOME/.local/share}/up/up.fish"