diff options
author | Steve Kondik <steve@cyngn.com> | 2015-01-04 17:58:24 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-01-04 17:58:24 -0800 |
commit | 13346b7ef17b94819ef9f85fe38e07a5ade145d1 (patch) | |
tree | f0a5e5a89d7c7e4199373b7c14d6fed777688e21 | |
parent | e553531f4a38ca1e4f495e3fa92e425e35b11aee (diff) | |
download | android_external_mksh-stable/cm-12.0-YNG1T.tar.gz android_external_mksh-stable/cm-12.0-YNG1T.tar.bz2 android_external_mksh-stable/cm-12.0-YNG1T.zip |
mksh: Set $TERM to "linux"stable/cm-12.0-YNG4Nstable/cm-12.0-YNG3Cstable/cm-12.0-YNG1TAstable/cm-12.0-YNG1Tstable/cm-12.0-YNG1Icm-12.0
* 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
-rw-r--r-- | mkshrc | 2 | ||||
-rw-r--r-- | src/dot.mkshrc | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ # # Support: https://launchpad.net/mksh -: ${TERM:=vt100} ${HOME:=/data} ${MKSH:=/system/bin/sh} ${HOSTNAME:=$(getprop ro.product.device)} +: ${TERM:=linux} ${HOME:=/data} ${MKSH:=/system/bin/sh} ${HOSTNAME:=$(getprop ro.product.device)} : ${SHELL:=$MKSH} ${USER:=$(typeset x=$(id); x=${x#*\(}; print -r -- ${x%%\)*})} ${HOSTNAME:=android} if (( USER_ID )); then PS1='$'; else PS1='#'; fi PS4='[$EPOCHREALTIME] '; PS1='${| diff --git a/src/dot.mkshrc b/src/dot.mkshrc index cbd13ed..607f40d 100644 --- a/src/dot.mkshrc +++ b/src/dot.mkshrc @@ -30,7 +30,7 @@ esac PS1='#'; (( USER_ID )) && PS1='$'; [[ ${HOSTNAME:=$(ulimit -c 0; hostname -s \ 2>/dev/null)} = *([ ]|localhost) ]] && HOSTNAME=$(ulimit -c 0; hostname \ - 2>/dev/null); : ${EDITOR:=/bin/ed} ${HOSTNAME:=nil} ${TERM:=vt100} + 2>/dev/null); : ${EDITOR:=/bin/ed} ${HOSTNAME:=nil} ${TERM:=linux} : ${MKSH:=$(whence -p mksh)}; PS4='[$EPOCHREALTIME] '; PS1=$'\001\r''${| local e=$? |