diff options
-rw-r--r-- | bashrc/common/prompt.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bashrc/common/prompt.sh b/bashrc/common/prompt.sh index 00e95b6..69ad443 100644 --- a/bashrc/common/prompt.sh +++ b/bashrc/common/prompt.sh @@ -112,6 +112,10 @@ __make_prompt() { if [[ -n "${TMUX}" || -n "${TMUX}" ]]; then echo -ne "\ek$(id -un)@${_hostname%%\.*}\e\\" fi + + if [[ "${TERM#rxvt}" != "${TERM}" || "${TERM#xterm}" != "${TERM}" ]]; then + echo -ne "\e]0;$(id -un)@${_hostname%%\.*}\e\\" + fi } export PROMPT_COMMAND="__make_prompt" |