diff --git a/src/etc/ksh.kshrc b/src/etc/ksh.kshrc index dbd09225..224049a2 100644 --- a/src/etc/ksh.kshrc +++ b/src/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.20 2015/02/18 08:39:32 rpe Exp $ +# $OpenBSD: ksh.kshrc,v 1.21 2016/09/09 16:11:12 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -53,6 +53,9 @@ case "$-" in tty=`tty` tty=`basename $tty` TTY=${TTY:-$tty} + # $console is the system console device + console=$(sysctl machdep.console_device) + console=${console#*=} set -o emacs