mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 22:34:29 +08:00
16 lines
263 B
Fish
16 lines
263 B
Fish
|
|
||
|
#
|
||
|
# Alias for gettext (or a fallback if gettext isn't installed)
|
||
|
#
|
||
|
|
||
|
if which gettext ^/dev/null >/dev/null
|
||
|
function _ -d "Alias for the gettext command"
|
||
|
gettext fish $argv
|
||
|
end
|
||
|
else
|
||
|
function _ -d "Alias for the gettext command"
|
||
|
printf "%s" $argv
|
||
|
end
|
||
|
end
|
||
|
|