mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
7492b6cdb3
darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
17 lines
304 B
Fish
17 lines
304 B
Fish
|
|
#
|
|
# Alias for gettext (or a fallback if gettext isn't installed)
|
|
#
|
|
|
|
set -l path (which $i ^/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"
|
|
printf "%s" $argv
|
|
end
|
|
end
|
|
|