fish-shell/share/functions/_.fish

15 lines
330 B
Fish
Raw Normal View History

#
# 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