mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 16:41:41 +08:00
e46978fedb
There's no need for a local var or echo in a subcommand. Also, fix the formatting to match the style guide.
14 lines
313 B
Fish
14 lines
313 B
Fish
#
|
|
# Alias for gettext or a fallback if gettext isn't installed.
|
|
#
|
|
if command -s gettext >/dev/null
|
|
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
|
|
|