fish-shell/share/functions/_.fish
2007-01-16 11:29:18 +10:00

17 lines
304 B
Fish

#
# Alias for gettext (or a fallback if gettext isn't installed)
#
set -l path (which $i ^/dev/null)
if test -x (echo $path)
function _ --description "Alias for the gettext command"
gettext fish $argv
end
else
function _ --description "Alias for the gettext command"
printf "%s" $argv
end
end