From 53eda6efe9868774ce1f097217ea169e0c83a446 Mon Sep 17 00:00:00 2001 From: tfheen Date: Sun, 27 Apr 2003 08:53:23 +0000 Subject: [PATCH] Fixes for solaris b0rkenness git-svn-id: file:///svn/tfheen/trunk/dotfiles@135 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- environment | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/environment b/environment index 0b556eb..6784df2 100644 --- a/environment +++ b/environment @@ -39,6 +39,7 @@ PILOTPORT=/dev/tts/0 DEBEMAIL=tfheen@debian.org DEBFULLNAME="Tollef Fog Heen" CVSEDITOR=vi +XTERM=xterm if test `uname -s` = "Linux" && test `uname -m` = i686; then ldlib=ld-linux.so.2 @@ -55,25 +56,33 @@ case `uname -s` in ;; esac +if type -p locale > /dev/null 2>&1; then + if locale -a | grep -q no_NO; then + LANG=no_NO + elif locale -a | grep -q en_US; then + LANG=en_US + fi +fi + case "$DOMAINNAME" in - pvv*|idi.ntnu.no|debian.org|cysteine*) +# pvv*|idi.ntnu.no|debian.org|cysteine*) # Sigh, no locale here, at least not uniformly. - case "$HOSTNAME" in - arabella*) - export LANG=no_NO - ;; - esac - ;; +# case "$HOSTNAME" in +# arabella*) +# export LANG=no_NO +# ;; +# esac +# ;; samfundet*) mesg y - export EMAIL=tfheen@samfundet.no + EMAIL=tfheen@samfundet.no ;; *) - export LANG=no_NO + : ;; esac export LS_OPTIONS CVSROOT EDITOR TZ WWW_HOME LESSOPEN LESS RSYNC_RSH export CVS_RSH PILOTPORT PILOTRATE LANG DEBEMAIL CVSEDITOR ldlib -export HOSTNAME DOMAINNAME PATH +export HOSTNAME DOMAINNAME PATH EMAIL -- 2.39.5