mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
0a8c922d92
This option has been available for a while now and it's a bit shorter.
14 lines
303 B
Fish
14 lines
303 B
Fish
#
|
|
# Alias for gettext or a fallback if gettext isn't installed.
|
|
#
|
|
if command -sq gettext
|
|
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
|
|
|