From: adefaria Date: Wed, 8 Oct 2014 20:25:30 +0000 (-0700) Subject: Changed so that if a user other than me runs bash_login it will do the X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;ds=inline;h=6a057f8fcf6e86496975b2e4d0e94609d277bd67;p=clearscm.git 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. --- 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