mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
17 lines
305 B
Fish
17 lines
305 B
Fish
|
|
#
|
|
# Alias for gettext (or a fallback if gettext isn't installed)
|
|
#
|
|
|
|
set -l path (which gettext ^/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"
|
|
echo -n $argv
|
|
end
|
|
end
|
|
|