aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/_.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-17 23:23:56 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-17 23:23:56 +1000
commit94b7c8d5e6a758d35f6a198babb0e8a4afb80dcb (patch)
tree9cbfc2506fef7633bf3aff4f786f18506e2be5ce /share/functions/_.fish
parent580ec2688533589b83ccc018529818bf7cd4ce15 (diff)
Don't call the type function when defining the _ function, as this will cause a recursive dependency
darcs-hash:20060317132356-ac50b-4b3b0b6ec3f2e82649c74cc358f1505bf202bbd4.gz
Diffstat (limited to 'share/functions/_.fish')
-rw-r--r--share/functions/_.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/functions/_.fish b/share/functions/_.fish
index accfdcbc..b3c5e218 100644
--- a/share/functions/_.fish
+++ b/share/functions/_.fish
@@ -3,7 +3,8 @@
# Alias for gettext (or a fallback if gettext isn't installed)
#
-if type -f gettext >/dev/null
+set -l path (which $i ^/dev/null)
+if test -x (echo $path)
function _ -d "Alias for the gettext command"
gettext fish $argv
end