aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-13 17:26:38 +0300
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-13 17:26:38 +0300
commit8ab81e6d4b24c965ea0f7191a29e332f803df4ba (patch)
tree6ae5e1013ccbd532a65366414b64891a1b78437e /share
parent4fc2ee1bd402eadc0e7f92b0c48761c46dcd4a5a (diff)
Implement 'help' for Cygwin.
Diffstat (limited to 'share')
-rw-r--r--share/functions/help.fish5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish
index ef147e72..04992e35 100644
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -54,8 +54,11 @@ function help --description 'Show help for the fish shell'
end
end
+ # If the OS appears to be Windows (graphical), try to use cygstart
+ if type cygstart > /dev/null
+ set fish_browser cygstart
# If xdg-open is available, just use that
- if type xdg-open > /dev/null
+ else if type xdg-open > /dev/null
set fish_browser xdg-open
end