git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1d2c6c
)
.bashrc: $PS1: +Termux exception.
author
root
<jan.kratochvil@redhat.com>
Tue, 17 Dec 2019 11:32:52 +0000
(12:32 +0100)
committer
root
<jan.kratochvil@redhat.com>
Tue, 17 Dec 2019 11:32:52 +0000
(12:32 +0100)
.bashrc
patch
|
blob
|
history
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