X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=admin%2Fprog%2Fbash_prompt;fp=admin%2Fprog%2Fbash_prompt;h=22445711837d5fe68abde83ee598d3e32936687f;hb=3503f52b7a4b1f8cf128a0f49e97927e30506496;hp=02141e3581ab17bf4400720b642e256a7872159d;hpb=7cd9e77a605d4c413110e410d44efcebae9c4d14;p=dotfiles.git diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index 02141e3..2244571 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -108,9 +108,10 @@ set_prompts() { # in the terminal title case "$TERM" in *rxvt*|screen*|*term*|vt100) - OPS1+="\[\033]0;${_COMMON_PROMPT}\007\]" + OPS1="\[\033]0;${_COMMON_PROMPT}\007\]" # Set xterm title/icon case "$TERM" in screen*) + OPS1="\[\033P\033]0;${_COMMON_PROMPT}\007\033\\\\\]" # Set xterm title/icon under screen/tmux OPS1+="\[\033k${_COMMON_PROMPT}\033\\\\\]" # Set screen/tmux caption ;; esac