summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2007-07-31 08:38:53 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:16 +0100
commit79bcba06e331372b57f2139fa94d856dd27df49e (patch)
tree2ea3c1459abe02406b882faf9f33ca2964d3c22f
parent3069f6d7cb36f894150bcef9d0ab70e22f49d953 (diff)
Putain, git, quoi. :)
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@521 a0e5b806-a6f9-0310-978d-cbce73f8a913
-rw-r--r--11_Prompts.zsh7
1 files changed, 3 insertions, 4 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh
index 1810825..22cacbb 100644
--- a/11_Prompts.zsh
+++ b/11_Prompts.zsh
@@ -95,15 +95,14 @@ precmd ()
ERROR=%(? "$C_$COLOR_BAR$_C----" "%4>>"$C_$COLOR_ERRR$_C"%?$C_$COLOR_BAR$_C"---"%>>")
## GIT TRACKING ##
- GITBRANCH=$(git branch 2>&- | grep '^\* ' | cut -c3-)
- GITBRANCH=""
+ GITBRANCH=$(git branch 2>&- | grep -E '^\* ' | cut -c3-)
if [ "$GITBRANCH" != "" ]
then
if [ "$GITCHECK" != "" ] && [ $(git status 2>&- | grep -E '^# ([[:alpha:]]+ )+(but not|to be)( [[:alpha:]]+)+:$' | wc -l) -gt 0 ]
then
COLOR_GIT=$COLOR_NOT_UPTODATE
else
- COLOR_GIT=$COLOR_BRANCH_OR_REV
+ COLOR_GIT=$COLOR_BRANCH_OR_REV
fi
fi
@@ -146,7 +145,7 @@ precmd ()
# Affiche l'user, l'host, le tty et le pwd. Rien que ça...
# Note que pour le pwd, on n'affiche que les 4 derniers dossiers pour éviter
# de pourrir le fenêtre de terminal avec un prompt à rallonge.
- PS1=$C_$COLOR_BAR$_C"-""$ERROR"$C_$COLOR_BRACES$_C"["$C_$COLOR_DATE$_C$DATE$C_$COLOR_BRACES$_C"]"$C_$COLOR_BAR$_C"$HBAR"$C_$COLOR_SVN$_C"$SVNREV"$C_$COLOR_GIT$_C"$GITBRANCH"$C_$COLOR_BAR$_C"-
+ PS1=$C_$COLOR_BAR$_C"-""$ERROR"$C_$COLOR_BRACES$_C"["$C_$COLOR_DATE$_C$DATE$C_$COLOR_BRACES$_C"]"$C_$COLOR_BAR$_C"$HBAR"$C_$COLOR_GIT$_C"$GITBRANCH"$C_$COLOR_SVN$_C"$SVNREV"$C_$COLOR_BAR$_C"-
"$C_$COLOR_USER$_C"%n"$C_$COLOR_AROB$_C"@"$C_$COLOR_HOST$_C"%m $CURDIR "$C_$COLOR_DIES$_C"%#"$C_$VOID$_C" "
}