some window naming for tmux
This commit is contained in:
parent
0b80f59127
commit
2ac396d59a
3 changed files with 8 additions and 10 deletions
4
bashrc
4
bashrc
|
@ -34,10 +34,10 @@ prompt_command()
|
|||
{
|
||||
case ${TERM} in
|
||||
rxvt*|st*|xterm*)
|
||||
printf "\033]0;%s@%s\007" "${USER}" "${HOSTNAME%%.*}"
|
||||
printf "\033]0;%s\007" "${HOSTNAME%%.*}"
|
||||
;;
|
||||
screen*|tmux*)
|
||||
printf "\033k%s@%s\033\\" "${USER}" "${HOSTNAME%%.*}"
|
||||
printf "\033k%s\033\\" "${HOSTNAME%%.*}"
|
||||
;;
|
||||
esac
|
||||
if ((UID)); then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue