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
(from parent 1:
6a15e35
)
.bashrc: PS1: Termux exception: $SHELL -> $SSH_CLIENT
author
Jan Kratochvil
<jan.kratochvil@redhat.com>
Sat, 18 Sep 2021 12:06:02 +0000
(14:06 +0200)
committer
Jan Kratochvil
<jan.kratochvil@redhat.com>
Sat, 18 Sep 2021 12:06:02 +0000
(14:06 +0200)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index
d2f99d3
..
c93f47c
100644
(file)
--- a/
.bashrc
+++ b/
.bashrc
@@
-198,7
+198,7
@@
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
- if [ "${S
HELL#*/com.termux/}" = "$SHELL" ];then
+ if [ "${S
SH_CLIENT#2a02:2b88:6:3b57::8f }" = "$SSH_CLIENT" ];then # !Termux
export PS1='\[\033%G\]'"$PS1" # \033%G=utf-8
fi
# Do not: kbd_mode -u # utf-8