File tree 4 files changed +23
-20
lines changed
4 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 3
3
# #############################################
4
4
5
5
function __load_tokens_if_rbw_unlocks --on-event rbw-unlocked
6
- if command -v rbw > /dev/null 2>&1
6
+ if type -q rbw
7
7
if rbw unlocked > /dev/null 2>&1
8
8
echo " 🔓🗝️ Session unlocked, loading tokens from Bitwarden... 🔓🗝️"
9
9
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if command -v git-town &> /dev/null
15
15
alias gt=' git-town'
16
16
end
17
17
18
- if command -v kubectl & > /dev/null
18
+ if type -q kubectl
19
19
function kubectl --wraps kubectl
20
20
command kubecolor $argv
21
21
end
@@ -29,7 +29,7 @@ if command -v kubectl &>/dev/null
29
29
set -x KUBECTL_EXTERNAL_DIFF " dyff between --omit-header --set-exit-code"
30
30
end
31
31
32
- if command -v aws_completer & > /dev/null
32
+ if type -q aws_completer
33
33
# Enable AWS CLI autocompletion: https://github.com/aws/aws-cli/issues/1079#issuecomment-541997810
34
34
complete --command aws --no-files --arguments ' (begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed \' s/ $//\' ; end)'
35
35
end
@@ -47,8 +47,8 @@ if test -f ~/.env
47
47
end
48
48
49
49
# ENHANCE!
50
- command -v fixit > /dev/null ; and fixit init fish | source
51
- command -v zoxide > /dev/null ; and zoxide init --cmd cd fish | source
52
- command -v atuin > /dev/null ; and atuin init fish | source
53
- # command -v savvy >/dev/null ; and savvy init fish | source # Disabled: not currently used, so saving in Fish startup costs.
54
- command -v starship > /dev/null ; and starship init fish | source
50
+ type -q fixit; and fixit init fish | source
51
+ type -q zoxide; and zoxide init --cmd cd fish | source
52
+ type -q atuin; and atuin init fish | source
53
+ # type -q savvy; and savvy init fish | source # Disabled: not currently used, so saving in Fish startup costs.
54
+ type -q starship; and starship init fish | source
Original file line number Diff line number Diff line change @@ -5,37 +5,40 @@ function update_completions
5
5
return
6
6
end
7
7
8
- if command -v aqua > /dev/null
8
+ if type -q aqua
9
9
aqua completion fish > " $_ completion_dir/aqua.fish"
10
10
end
11
- if command -v lab > /dev/null
11
+ if type -q lab
12
12
lab completion fish > " $_ completion_dir/lab.fish"
13
13
end
14
- if command -v glab > /dev/null
14
+ if type -q glab
15
15
glab completion -s fish > " $_ completion_dir/glab.fish"
16
16
end
17
- if command -v mise > /dev/null
17
+ if type -q mise
18
18
mise completion fish > " $_ completion_dir/mise.fish"
19
19
end
20
- if command -v rbw > /dev/null
20
+ if type -q rbw
21
21
rbw gen-completions fish > " $_ completion_dir/rbw.fish"
22
22
end
23
- if command -v ghorg > /dev/null
23
+ if type -q ghorg
24
24
ghorg completion fish > " $_ completion_dir/ghorg.fish"
25
25
end
26
- if command -v starship > /dev/null
26
+ if type -q starship
27
27
starship completions fish > " $_ completion_dir/starship.fish"
28
28
end
29
- if command -v tenv > /dev/null
29
+ if type -q tenv
30
30
tenv completion fish > " $_ completion_dir/tenv.fish"
31
31
end
32
- if command -v kubectl > /dev/null
32
+ if type -q kubectl
33
33
kubectl completion fish > " $_ completion_dir/kubectl.fish"
34
34
end
35
35
if command -v git-town > /dev/null
36
36
git-town completions fish > " $_ completion_dir/git-town.fish"
37
37
end
38
- if command -v fzf > /dev/null
38
+ if type -q fzf
39
39
fzf --fish > " $_ completion_dir/fzf.fish"
40
40
end
41
+ if type -q chezmoi
42
+ chezmoi completion fish > " $_ completion_dir/chezmoi.fish"
43
+ end
41
44
end
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ pipx = "latest"
42
42
"cargo:racum/uuinfo" = " HEAD"
43
43
"cargo:rbw" = " 1.13.1"
44
44
"cargo:ripgrep_all" = " latest"
45
- "cargo:serie" = " latest"
46
45
"cargo:zeitfetch" = " latest"
47
46
48
47
# ##############
@@ -62,13 +61,14 @@ pipx = "latest"
62
61
# UBI Packages #
63
62
# ###############
64
63
"ubi:aws-cloudformation/rain" = " 1.20.2"
65
- "ubi:imsnif/bandwhich" = " latest"
66
64
"ubi:darkhz/bluetuith" = " latest"
67
65
"ubi:eugene-babichenko/fixit" = " 0.9.0"
68
66
"ubi:fioncat/otree" = " 0.3.1"
69
67
"ubi:gdubicki/ets" = " 0.3.0"
68
+ "ubi:imsnif/bandwhich" = " latest"
70
69
"ubi:jacek-kurlit/pik" = " 0.14.1"
71
70
"ubi:joschi/dive" = " 0.13.1"
71
+ "ubi:lusingander/serie" = " 0.4.3"
72
72
73
73
[settings ]
74
74
# Issues I'd like to see implemented/fixed before enabling uvx for all packages:
You can’t perform that action at this time.
0 commit comments