aboutsummaryrefslogtreecommitdiffhomepage
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/fish.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/init/fish.in b/init/fish.in
index 7cc3c865..0c1844ec 100644
--- a/init/fish.in
+++ b/init/fish.in
@@ -71,8 +71,14 @@ for i in DISPLAY
end
end
-function _ -d "Alias for the gettext command"
- gettext fish $argv
+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
#