mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 14:51:15 -03:00
Add missing logic to trampoline block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user