mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:43:18 +08:00
help: Always use xdg-open if available
Even if $DISPLAY is unset, xdg-open can be useful, and on systems that have xdg-open, "open" is most likely some god awful outdated thing called "openvt" elsewhere. Fixes #6739 [ci skip]
This commit is contained in:
parent
6237a24573
commit
5ab1e2dc0f
|
@ -68,8 +68,7 @@ function help --description 'Show help for the fish shell'
|
||||||
if type -q cygstart
|
if type -q cygstart
|
||||||
set fish_browser cygstart
|
set fish_browser cygstart
|
||||||
# If xdg-open is available, just use that
|
# If xdg-open is available, just use that
|
||||||
# but only if an X session is running
|
else if type -q xdg-open
|
||||||
else if type -q xdg-open; and set -q -x DISPLAY
|
|
||||||
set fish_browser xdg-open
|
set fish_browser xdg-open
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user