From f99a3cc2b88f5e57faa842eb8e19d8cbb2ee5601 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Dec 2019 12:32:52 +0100 Subject: [PATCH] .bashrc: $PS1: +Termux exception. --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 50b8eac..65446b3 100644 --- a/.bashrc +++ b/.bashrc @@ -197,7 +197,9 @@ if [ -n "$PS1" ];then # set only in interactive sessions export PS1='[bash]${LOGNAME}@MOCK-'"`cat /MOCK`"':${PWD}# ' fi export PS1='\[\017\]'"$PS1" # \017=std charmap - export PS1='\[\033%G\]'"$PS1" # \033%G=utf-8 + if [ "${SHELL#*/com.termux/}" = "$SHELL" ];then + export PS1='\[\033%G\]'"$PS1" # \033%G=utf-8 + fi # Do not: kbd_mode -u # utf-8 # as it breaks keyboard state in X and it is not permitted for non-root. fi -- 1.8.3.1