~xdavidwu/dotfiles

b16070a2488c65fa7d33fc3743dbb88b2d238f62 — xdavidwu 2 years ago 57dd4d2
bash: use osc 2 for term title

screen takes osc 0 as its hardstatus
1 files changed, 1 insertions(+), 1 deletions(-)

M .bashrc
M .bashrc => .bashrc +1 -1
@@ 221,7 221,7 @@ while [ -n "$LVLSTR" ];do
	esac
	LVLSTR=${LVLSTR#?}
done
PS1="\[\033]0;$PS1AO\u@\h${STY:+>${STY#*\.}} \w\007\]$PS1A\[\033[0m\]$PS1"
PS1="\[\033]2;$PS1AO\u@\h${STY:+>${STY#*\.}} \w\033\\\]$PS1A\[\033[0m\]$PS1"
export PTERM
alias rssh="command ssh"
alias ssh="env TERM=$PTERM ssh"