fish config now works if fw isn't installed

This commit is contained in:
LordMZTE 2021-07-09 15:43:41 +02:00
parent 07d1bb0b82
commit 27e2594c5a

View file

@ -58,10 +58,12 @@ ifpresent opam 'eval (opam env)'
ifpresent navi 'navi widget fish | source'
# fw init
if test -x (command -v fw)
if test -x (command -v fzf)
fw print-fish-setup -f | source
else
fw print-fish-setup | source
end
if which fw &> /dev/null
if test -x (command -v fw)
if test -x (command -v fzf)
fw print-fish-setup -f | source
else
fw print-fish-setup | source
end
end
end