From: Alexander Barton Date: Sat, 25 Aug 2012 21:08:14 +0000 (+0200) Subject: Always initialize terminal using tset in interactive sessions X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21c214fab64d81c831ab63a3ae163a769f36dd91;p=ConfigScripts.git Always initialize terminal using tset in interactive sessions This makes sure, that TERM will have a value that is understood by the local system. --- diff --git a/sys/profile b/sys/profile index 9d7e563..f9275b4 100644 --- a/sys/profile +++ b/sys/profile @@ -77,9 +77,6 @@ fi [ -r /etc/debian_chroot ] && chroot_name=$(cat /etc/debian_chroot) [ -r /etc/chroot_name ] && chroot_name=$(cat /etc/chroot_name) -# validate terminal definition -[ -z "$TERM" ] && eval `tset -s -Q` - # make sure $UID and $USER is set [ -z "$UID" ] && UID=`id -u` [ -z "$USER" ] && USER=`id -un` @@ -126,6 +123,9 @@ fi # interactive shell? [ "$PS1" ] || return +# validate terminal definition +eval `tset -s -Q` + # generic shell prompt [ "$UID" -eq 0 ] \ && PS1="<$ME> # " \