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;h=000f1f238f1e39a2ae273837e3c54d8eae0d0efe;hp=22e56e08ed2c1b9685b711e160c35f4679eec4f9;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