From 4fc2ee1bd402eadc0e7f92b0c48761c46dcd4a5a Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 13 Aug 2013 17:21:40 +0300 Subject: [PATCH] Implement 'open' for Cygwin. --- share/functions/open.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/functions/open.fish b/share/functions/open.fish index 885079e11..63d562371 100644 --- a/share/functions/open.fish +++ b/share/functions/open.fish @@ -14,7 +14,11 @@ if not test (uname) = Darwin end end - if type -f xdg-open >/dev/null + if type -f cygstart >/dev/null + for i in $argv + cygstart $i + end + else if type -f xdg-open >/dev/null for i in $argv xdg-open $i end