This makes sure, that TERM will have a value that is understood by the
local system.
[ -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`
# interactive shell?
[ "$PS1" ] || return
+# validate terminal definition
+eval `tset -s -Q`
+
# generic shell prompt
[ "$UID" -eq 0 ] \
&& PS1="<$ME> # " \