From aa04e3a14d9ebdcaafc62df0d38b41772bda8eba Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sat, 17 Jan 2026 22:05:35 +0800 Subject: [PATCH] =?UTF-8?q?.bashrc:=20=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot/.bashrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dot/.bashrc b/dot/.bashrc index fd335f1..6771d8e 100644 --- a/dot/.bashrc +++ b/dot/.bashrc @@ -35,7 +35,16 @@ if [[ -e $PROXY_SHELL_FILE ]] ; then . $PROXY_SHELL_FILE fi -if [[ "${TERM}" != "tmux-256color" ]] && [[ -x $(type -p tmux) ]]; then +if [[ "$TERM" == "linux" ]]; then + PS1="(tty) $PS1" +elif [[ "$TERM" == "fbterm" ]]; then + PS1="(fbterm) $PS1" +fi + +# use fbterm to show CJK charactor in tty +if [[ "$TERM" == "linux" ]] && [[ -x $(type -p fbterm) ]]; then + fbterm +elif [[ "${TERM}" != "tmux-256color" ]] && [[ -z "${TERM_PROGRAM}" ]] && [[ -x $(type -p tmux) ]]; then tmux fi