Dont clobber fish_browser if cygstart is available

This commit is contained in:
Jason 2019-12-02 09:41:49 +09:00 committed by Johannes Altmanninger
parent c3374ffd08
commit dacc0b595c

View file

@ -77,7 +77,8 @@ function help --description 'Show help for the fish shell'
#
# We use this instead of xdg-open because that's useless without a backend
# like wsl-open which we'll check in a minute.
if set -l cmd (command -s cmd.exe /mnt/c/Windows/System32/cmd.exe)
if not type -q cygstart
and set -l cmd (command -s cmd.exe /mnt/c/Windows/System32/cmd.exe)
# Use the first of these.
set fish_browser $cmd[1]
end