Changed so that if a user other than me runs bash_login it will do the
authoradefaria <adefaria@adefaria-lt.audience.local>
Wed, 8 Oct 2014 20:25:30 +0000 (13:25 -0700)
committeradefaria <adefaria@adefaria-lt.audience.local>
Wed, 8 Oct 2014 20:25:30 +0000 (13:25 -0700)
right thing. I use this often when I sudo.

Now supports LANG UTF8.

rc/bash_login

index 88d27e0..306e82f 100644 (file)
@@ -185,8 +185,12 @@ fi
 if [ -f "$SYSTEMDRIVE/Perl/bin/perl" ]; then
   alias asperl="$SYSTEMDRIVE/Perl64/bin/perl"
 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
 
 if [ $(type -p vim) ]; then
   alias vi=vim