Browse Source

Do the same with less code.

OK halex
OPENBSD_6_1
rpe 8 years ago
parent
commit
3a5d0b50bb
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      src/etc/ksh.kshrc

+ 4
- 6
src/etc/ksh.kshrc View File

@ -1,5 +1,5 @@
: :
# $OpenBSD: ksh.kshrc,v 1.26 2016/09/10 12:50:20 rpe Exp $
# $OpenBSD: ksh.kshrc,v 1.27 2016/09/14 18:34:51 rpe Exp $
# #
# NAME: # NAME:
# ksh.kshrc - global initialization for ksh # ksh.kshrc - global initialization for ksh
@ -74,11 +74,9 @@ case "$-" in
xterm*) xterm*)
ILS='\033]1;'; ILE='\007' ILS='\033]1;'; ILE='\007'
WLS='\033]2;'; WLE='\007' WLS='\033]2;'; WLE='\007'
parent="`ps -ax 2>/dev/null | grep $PPID | grep -v grep`"
case "$parent" in
*telnet*)
export TERM=xterms;;
esac
if ps -p $PPID -o command | grep -q telnet; then
export TERM=xterms
fi
;; ;;
*) ;; *) ;;
esac esac


Loading…
Cancel
Save