.bashrc: $PS1: +Termux exception.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 50b8eac..65446b3 100644 (file)
--- 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