From f26fdc9f241dd6c0caf8b30214a5df1a00486780 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sat, 25 Dec 2021 22:32:43 +0800 Subject: [PATCH] bash: ps1: mark escape sequences --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index c630703..eb9dcd1 100644 --- a/.bashrc +++ b/.bashrc @@ -220,7 +220,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]0;$PS1AO\u@\h${STY:+>${STY#*\.}} \w\007\]$PS1A\[\033[0m\]$PS1" export PTERM alias rssh="command ssh" alias ssh="env TERM=$PTERM ssh" -- 2.45.2