From 000f1f238f1e39a2ae273837e3c54d8eae0d0efe Mon Sep 17 00:00:00 2001 From: adefaria Date: Wed, 8 Oct 2014 13:25:30 -0700 Subject: [PATCH] Changed so that if a user other than me runs bash_login it will do the right thing. I use this often when I sudo. Now supports LANG UTF8. --- rc/bash_login | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rc/bash_login b/rc/bash_login index 88d27e0..306e82f 100644 --- a/rc/bash_login +++ b/rc/bash_login @@ -185,8 +185,12 @@ fi if [ -f "$SYSTEMDRIVE/Perl/bin/perl" ]; then alias asperl="$SYSTEMDRIVE/Perl64/bin/perl" fi - -export LANG=C + +if [ $(locale -a | grep -c en_US.utf8) != 0 ]; then + export LANG=en_US.utf8 +else + export LANG=C +fi if [ $(type -p vim) ]; then alias vi=vim -- 2.17.1