3
0
Fork 0
forked from mirrors/nixpkgs

Fixing the xterm PS1 for changing the window title, so it is properly bracketed for bash not to count the control sequences as printable characters.

svn path=/nixos/trunk/; revision=24545
This commit is contained in:
Lluís Batlle i Rossell 2010-10-30 20:40:33 +00:00
parent c4dd77ae9c
commit edb5870deb

View file

@ -60,7 +60,7 @@ PROMPT_COLOR="1;31m"
let $UID && PROMPT_COLOR="1;32m"
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
if test "$TERM" = "xterm"; then
PS1="\033]2;\h:\u:\w\007$PS1"
PS1="\[\033]2;\h:\u:\w\007\]$PS1"
fi