🐛 fix(fish): cheking correctly if a program exists before sourcing
This commit is contained in:
parent
ed17c84f03
commit
e61795ba2a
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
if type mise >/dev/null ^&1
|
if type -q mise
|
||||||
mise activate fish | source
|
mise activate fish | source
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
if type starship >/dev/null ^&1
|
if type -q starship
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
if type zoxide >/dev/null ^&1
|
if type -q zoxide
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue