diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1996-12-16 03:49:51 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1996-12-16 03:49:51 +0000 |
commit | d65f84d314395edfbc01e93ebd53520814b3028e (patch) | |
tree | 452054354bd16efa4c590db7b073592e74fb2bc2 /etc/ksh.kshrc | |
parent | 7934030993e4fb5cbb350748b2bf2cc7e1366319 (diff) |
changed not to hardcode sun console name as "console"
Diffstat (limited to 'etc/ksh.kshrc')
-rw-r--r-- | etc/ksh.kshrc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/ksh.kshrc b/etc/ksh.kshrc index 59a1714e78c..8442ffb6d82 100644 --- a/etc/ksh.kshrc +++ b/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.1 1996/08/14 08:28:04 downsj Exp $ +# $OpenBSD: ksh.kshrc,v 1.2 1996/12/16 03:49:50 kstailey Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -54,7 +54,9 @@ case "$-" in 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 alias ls='ls -CF' @@ -82,7 +84,7 @@ case "$-" in case "$TERM" in sun*) # these are not as neat as their csh equivalents - if [ "$tty" != console ]; then + if [ "$tty" != "$console" ]; then # ilabel ILS='\033]L'; ILE='\033\\' # window title bar |