changeset 683:71254a6ddb4c

[bash] Also detect (new?) tmux term
author nanaya <me@nanaya.pro>
date Tue, 09 Aug 2022 04:16:52 +0900
parents 88888f40c628
children 6010e722b5da
files rc/bashrc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Fri Jun 24 22:50:19 2022 +0900
+++ b/rc/bashrc	Tue Aug 09 04:16:52 2022 +0900
@@ -242,7 +242,7 @@
 
 PS1='\u@\h:\w\$ '
 case "${TERM}" in
-  xterm*|screen*|dtterm*)
+  xterm*|screen*|dtterm*|tmux*)
     PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-${LOGNAME:-$USERNAME}}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}"
     if [ "$(id -u)" = "0" ]; then
       PS1='\[\e[1;31m\]\u@\h:\w\$\[\e[0m\] '