From 1a4fb8aaf07fdb5453a55eadcc8e3db5b6e0471d Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 9 Mar 2009 22:19:07 +0100 Subject: [PATCH] Revert PS1 to earlier version, plus __git_ps1 When I turned on the Git prompt, I overlooked the fact that we already had a definition for PS1. So let's go back to the old version, but add __git_ps1 instead. Noticed by demodevil@gmail.com. Signed-off-by: Johannes Schindelin --- etc/profile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/etc/profile b/etc/profile index 0cc2dab8d2..32c0508237 100644 --- a/etc/profile +++ b/etc/profile @@ -66,9 +66,6 @@ for i in /etc/profile.d/*.sh ; do done export MAKE_MODE=unix -export PS1='\[\033]0;$MSYSTEM:\w\007 -\033[32m\]\u@\h \[\033[33m\w\033[0m\] -$ ' if [ -e ~/.bashrc ]; then . ~/.bashrc @@ -133,6 +130,8 @@ esac . /git/contrib/completion/git-completion.bash -PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' +PS1='\[\033]0;$MSYSTEM:\w\007 +\033[32m\]\u@\h \[\033[33m\w$(__git_ps1)\033[0m\] +$ ' export LESS=-FRSX -- 2.11.4.GIT