diff options
-rw-r--r-- | etc/fish.in | 15 | ||||
-rw-r--r-- | share/fish | 15 |
2 files changed, 15 insertions, 15 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? # @@ -11,21 +11,6 @@ set -g fish_function_path $PWD/functions/ # -# 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 - -# # Don't need completions in non-interactive mode # |