aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/open.fish
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-07-10 00:26:58 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-07-13 19:11:29 -0700
commit533496e43ac4de68537b66412d54e880e03b6561 (patch)
treeed6bf5c69595aa0385ce8307d542feaae91e8c1b /share/functions/open.fish
parent6f7a7459c1dadc88e793b558d5ce2668359e7bea (diff)
Adopt the new type -q flag in the other functions
Diffstat (limited to 'share/functions/open.fish')
-rw-r--r--share/functions/open.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/open.fish b/share/functions/open.fish
index 63d56237..7a1e7bce 100644
--- a/share/functions/open.fish
+++ b/share/functions/open.fish
@@ -14,11 +14,11 @@ if not test (uname) = Darwin
end
end
- if type -f cygstart >/dev/null
+ if type -q -f cygstart
for i in $argv
cygstart $i
end
- else if type -f xdg-open >/dev/null
+ else if type -q -f xdg-open
for i in $argv
xdg-open $i
end