Browse Source

Replace ps | grep with pgrep and use && instead of if-then-fi.

From Raf Czlonka.
ok halex
OPENBSD_6_3
tb 6 years ago
parent
commit
1decb82f6e
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/etc/ksh.kshrc

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

@ -1,5 +1,5 @@
:
# $OpenBSD: ksh.kshrc,v 1.28 2017/07/15 07:11:42 tb Exp $
# $OpenBSD: ksh.kshrc,v 1.29 2017/11/02 10:19:06 tb Exp $
#
# NAME:
# ksh.kshrc - global initialization for ksh
@ -74,9 +74,7 @@ case "$-" in
xterm*)
ILS='\033]1;'; ILE='\007'
WLS='\033]2;'; WLE='\007'
if ps -p $PPID -o command | grep -q telnet; then
export TERM=xterms
fi
pgrep -qxs $PPID telnet && export TERM=xterms
;;
*) ;;
esac


Loading…
Cancel
Save