mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
Add missing logic to trampoline block
This commit is contained in:
parent
b358cee5fe
commit
b3291619f4
1 changed files with 3 additions and 0 deletions
|
@ -171,9 +171,12 @@ function help --description 'Show help for the fish shell'
|
|||
set page_url file://$tmpname
|
||||
|
||||
# For Windows (Cygwin and WSL), we need to convert the base help dir to a Windows path before converting it to a file URL
|
||||
# but only if a Windows browser is being used
|
||||
if type -q cygpath
|
||||
and string match -qr "cygstart" $fish_browser[1]
|
||||
set page_url file://(cygpath -m $tmpname)
|
||||
else if type -q wslpath
|
||||
and string match -qr '.exe' $fish_browser[1]
|
||||
set page_url file://(wslpath -w $tmpname)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue