mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
7e0e745958
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.
14 lines
330 B
Fish
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
|
|
|