diff rc/bashrc @ 683:71254a6ddb4c

[bash] Also detect (new?) tmux term
author nanaya <me@nanaya.pro>
date Tue, 09 Aug 2022 04:16:52 +0900
parents 35c26d9dcaa7
children 7dda86be7a60
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\] '