From edb5870deb7e53070eed1057378125b5bce394c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 30 Oct 2010 20:40:33 +0000 Subject: [PATCH] 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 --- modules/programs/bash/bashrc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/bash/bashrc.sh b/modules/programs/bash/bashrc.sh index f8d124879aad..50768635d36b 100644 --- a/modules/programs/bash/bashrc.sh +++ b/modules/programs/bash/bashrc.sh @@ -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