Author: viric Date: Sat Oct 30 20:40:33 2010 New Revision: 24545 URL: https://svn.nixos.org/websvn/nix/?rev=24545&sc=1
Log: 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. Modified: nixos/trunk/modules/programs/bash/bashrc.sh Modified: nixos/trunk/modules/programs/bash/bashrc.sh ============================================================================== --- nixos/trunk/modules/programs/bash/bashrc.sh Sat Oct 30 20:05:38 2010 (r24544) +++ nixos/trunk/modules/programs/bash/bashrc.sh Sat Oct 30 20:40:33 2010 (r24545) @@ -60,7 +60,7 @@ let $UID && PROMPT_COLOR="1;32m" PS1="\n\[\033[$prompt_color\]...@\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 _______________________________________________ nix-commits mailing list [email protected] http://mail.cs.uu.nl/mailman/listinfo/nix-commits
