aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/fish.in
diff options
context:
space:
mode:
Diffstat (limited to 'etc/fish.in')
-rw-r--r--etc/fish.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/fish.in b/etc/fish.in
index ef9bcf4d..f4bb6516 100644
--- a/etc/fish.in
+++ b/etc/fish.in
@@ -39,6 +39,21 @@ end
#
+# Set some value for LANG if nothing was set before, and this is a
+# login shell. Also check for i18n information in /etc/sysconfig/i18n
+#
+
+if status --is-login
+ if not set -q LANG >/dev/null
+ set -gx LANG en_US.UTF-8
+ end
+
+ if test -f /etc/sysconfig/i18n
+ eval (cat /etc/sysconfig/i18n |sed -ne 's/^\([a-zA-Z]*\)=\(.*\)$/set -gx \1 \2;/p')
+ end
+end
+
+#
# Put linux console in unicode mode. Should this be done in any other
# situation as well?
#