forked from kzwkt/dotfiles-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_once_after_10-setup-fish.sh.tmpl
43 lines (35 loc) · 1.04 KB
/
run_once_after_10-setup-fish.sh.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/fish
## Install Starship
if not type -q starship
curl -fsSL https://starship.rs/install.sh | bash -s --yes
end
## Install zoxide
if not type -q zoxide
curl -sS https://webinstall.dev/zoxide | bash
end
## Install fisher
if not type -q fisher
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
end
## Install fish plugins
fisher install patrickF1/fzf.fish
fisher install nickeb96/puffer-fish
fisher install budimanjojo/tmux.fish
fisher install jorgebucaran/autopair.fish
fisher install gazorby/fish-abbreviation-tips
{{ if .kubernetes -}}
fisher install evanlucas/fish-kubectl-completions
{{ end -}}
## Setup completions
if not test -d $__fish_config_dir/completions
mkdir -p $__fish_config_dir/completions
end
if type -q chezmoi
chezmoi completion fish --output=$__fish_config_dir/completions/chezmoi.fish
end
if type -q flux
flux completion fish > $__fish_config_dir/completions/flux.fish
end
if type -q kustomize
kustomize completion fish > $__fish_config_dir/completions/kustomize.fish
end