Tmux window title keeps renaming

前端 未结 4 810
误落风尘
误落风尘 2021-02-02 12:04

Suddenly, both my screen/tmux started changing my windows\' names after every command. They keep changing the name to the value of $PROMPT_COMMAND on every single a

4条回答
  •  终归单人心
    2021-02-02 12:46

    First, if l0b0's answer fixed your problem could you please mark it as a solution? Second, for those of use who stumble upon this question and are using fedora 19 this redhat bug report may be of interest. It seems like the default value of $PROMPT_COMMAND set by /etc/bashrc has been changed recently. I reverted to the previous behavior like this:

    echo 'printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"' > /etc/sysconfig/bash-prompt-screen
    chmod a+rx /etc/sysconfig/bash-prompt-screen
    

提交回复
热议问题