aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/funced.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/funced.fish
parent6f7a7459c1dadc88e793b558d5ce2668359e7bea (diff)
Adopt the new type -q flag in the other functions
Diffstat (limited to 'share/functions/funced.fish')
-rw-r--r--share/functions/funced.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/funced.fish b/share/functions/funced.fish
index ca2e2772..074e3c43 100644
--- a/share/functions/funced.fish
+++ b/share/functions/funced.fish
@@ -51,7 +51,7 @@ function funced --description 'Edit function definition'
if test -n "$editor"
set -l editor_cmd
eval set editor_cmd $editor
- if not type -f "$editor_cmd[1]" >/dev/null
+ if not type -q -f "$editor_cmd[1]"
_ "funced: The value for \$EDITOR '$editor' could not be used because the command '$editor_cmd[1]' could not be found
"
set editor fish