fish-shell/share/functions/_.fish
Aaron Gyes 7e0e745958 The last commit introduced a Travis failure.
Only on the OS X travis build.

I can't reproduce it but I figure it's something to do
with test -e vs test -x or the echo -n in command substitution.
Oops.
2016-08-07 15:48:41 -07:00

14 lines
330 B
Fish

#
# Alias for gettext (or a fallback if gettext isn't installed)
#
set -l gettext_path (command -v gettext)
if test -x (echo $gettext_path)
function _ --description "Alias for the gettext command"
command gettext fish $argv
end
else
function _ --description "Fallback alias for the gettext command"
echo -n $argv
end
end