From 8ab81e6d4b24c965ea0f7191a29e332f803df4ba Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 13 Aug 2013 17:26:38 +0300 Subject: [PATCH] Implement 'help' for Cygwin. --- share/functions/help.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index ef147e722..04992e35d 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