|
@ -1,5 +1,5 @@ |
|
|
: |
|
|
: |
|
|
# $OpenBSD: ksh.kshrc,v 1.10 2002/10/16 15:39:10 todd Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: ksh.kshrc,v 1.11 2002/12/08 22:40:45 marc Exp $ |
|
|
# |
|
|
# |
|
|
# NAME: |
|
|
# NAME: |
|
|
# ksh.kshrc - global initialization for ksh |
|
|
# ksh.kshrc - global initialization for ksh |
|
@ -155,30 +155,6 @@ case "$-" in |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
esac |
|
|
alias rsize='eval `resize`' |
|
|
alias rsize='eval `resize`' |
|
|
|
|
|
|
|
|
case "$TERM" in |
|
|
|
|
|
sun*|xterm*) |
|
|
|
|
|
case $tty in |
|
|
|
|
|
tty[p-w]*) |
|
|
|
|
|
case "$DISPLAY" in |
|
|
|
|
|
"") |
|
|
|
|
|
DISPLAY="`who | grep $TTY | sed -n 's/.*(\([^:)]*\)[:)].*/\1/p' | sed 's/\([a-zA-Z][^.]*\).*/\1/'`:0" |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
case "$DISPLAY" in |
|
|
|
|
|
ozen*|:*) |
|
|
|
|
|
stty erase "^?" |
|
|
|
|
|
;; |
|
|
|
|
|
*) |
|
|
|
|
|
stty erase "^h" |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
export DISPLAY |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
;; |
|
|
;; |
|
|
*) # non-interactive |
|
|
*) # non-interactive |
|
|
;; |
|
|
;; |
|
|