From d0bedf3bbdfb2bb0a256cccaed8606b878e3ab06 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 23 Mar 2020 20:57:23 +0100 Subject: [PATCH] help.fish: only use cmd.exe on WSL Fixes #6797 --- share/functions/help.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index 6b7cca719..b4985d10e 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -85,7 +85,8 @@ function help --description 'Show help for the fish shell' # # We use this instead of xdg-open because that's useless without a backend # like wsl-open which we'll check in a minute. - if not type -q cygstart + if test -f /proc/version + and string match -riq 'Microsoft|WSL'