From 21c214fab64d81c831ab63a3ae163a769f36dd91 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 25 Aug 2012 23:08:14 +0200 Subject: [PATCH] Always initialize terminal using tset in interactive sessions This makes sure, that TERM will have a value that is understood by the local system. --- sys/profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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> # " \ -- 2.39.2