🐛 fix(fish): cheking correctly if a program exists before sourcing

This commit is contained in:
Sergio Laín 2024-04-07 15:20:55 +02:00
parent ed17c84f03
commit e61795ba2a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
if status is-interactive if status is-interactive
if type atuin >/dev/null ^&1 if type -q atuin
atuin init fish | source atuin init fish | source
end end
end end

View file

@ -1,3 +1,3 @@
if type mise >/dev/null ^&1 if type -q mise
mise activate fish | source mise activate fish | source
end end

View file

@ -1,3 +1,3 @@
if type starship >/dev/null ^&1 if type -q starship
starship init fish | source starship init fish | source
end end

View file

@ -1,3 +1,3 @@
if type zoxide >/dev/null ^&1 if type -q zoxide
zoxide init fish | source zoxide init fish | source
end end