OSDN Git Service

mksh: Set $TERM to "linux"
authorSteve Kondik <steve@cyngn.com>
Mon, 5 Jan 2015 01:58:24 +0000 (17:58 -0800)
committerSteve Kondik <steve@cyngn.com>
Wed, 24 Aug 2016 20:25:56 +0000 (13:25 -0700)
 * We dropped this from the global environment in CM11, so readd
   it here so we get all the ANSI hotness in the shell.

Change-Id: I9cb2faf415348717559f4f65bcfbe88d514ac9fe

src/dot.mkshrc

index ab13f9d..b582044 100644 (file)
@@ -28,7 +28,7 @@ case ${KSH_VERSION:-} in
 *) return 0 ;;
 esac
 
-PS1='#'; (( USER_ID )) && PS1='$'; \: "${TERM:=vt100}${HOSTNAME:=$(\ulimit -c \
+PS1='#'; (( USER_ID )) && PS1='$'; \: "${TERM:=linux}${HOSTNAME:=$(\ulimit -c \
     0; hostname 2>/dev/null)}${EDITOR:=/bin/ed}${USER:=$(\ulimit -c 0; id -un \
     2>/dev/null || \echo \?)}${MKSH:=$(\builtin whence -p mksh)}"
 HOSTNAME=${HOSTNAME%%*([        ]).*}; HOSTNAME=${HOSTNAME##*([         ])}