=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/ksh.kshrc,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/etc/ksh.kshrc 1996/12/16 03:49:50 1.2 --- src/etc/ksh.kshrc 1998/03/22 03:39:10 1.3 *************** *** 1,5 **** : ! # $OpenBSD: ksh.kshrc,v 1.2 1996/12/16 03:49:50 kstailey Exp $ # # NAME: # ksh.kshrc - global initialization for ksh --- 1,5 ---- : ! # $OpenBSD: ksh.kshrc,v 1.3 1998/03/22 03:39:10 marc Exp $ # # NAME: # ksh.kshrc - global initialization for ksh *************** *** 37,42 **** --- 37,43 ---- # install whoami.sh USER=`whoami 2>/dev/null` USER=${USER:-`id | sed 's/^[^(]*(\([^)]*\)).*/\1/'`} + UID=`id -u` case $UID in 0) PS1S='# ';; esac *************** *** 54,61 **** tty=`tty` tty=`basename $tty` TTY=${TTY:-$tty} - # console is the system console device - console=`sysctl machdep.console_device | cut -d' ' -f3` set -o emacs --- 55,60 ---- *************** *** 82,89 **** ;; esac case "$TERM" in ! sun*) ! # these are not as neat as their csh equivalents if [ "$tty" != "$console" ]; then # ilabel ILS='\033]L'; ILE='\033\\' --- 81,88 ---- ;; esac case "$TERM" in ! sun*-s) ! # sun console with status line if [ "$tty" != "$console" ]; then # ilabel ILS='\033]L'; ILE='\033\\'