summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-06-12 12:55:25 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-06-13 11:33:38 +0200
commit3adf75985c6f645e84f0636dece7c758338511aa (patch)
tree4b082f53ec3331503cfcc0512d8ac9a7c2f6f16a
parenta308c85a9b66c1cd50160bcff563d1e43d34001d (diff)
Removed this annoying ':' between path and git/svn rev
-rw-r--r--12_Prompts.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 37237ea..b3d2ed7 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -100,13 +100,13 @@ old_precmd()
#
[ "$DEBUG" = "yes" ] && echo -n " SVN status..."
SVNREV=$(LC_ALL=C svn info 2>&- $PWD | awk '/^Revision: / {print $2}')
- SVNREVSIZE=${#${SVNREV:+:r$SVNREV}}
+ SVNREVSIZE=${#${SVNREV:+ r$SVNREV}}
if [ "$SVNREV" != "" ]
then
SVNSTATUS="$(svn diff 2>&-)"
SVNSTATUS=${${SVNSTATUS:+$prompt_colors[not_up_to_date]}:-$prompt_colors[up_to_date]}
fi
- SVNREV=${SVNREV:+$C_$prompt_colors[doubledot]$_C:$C_$SVNSTATUS$_C"r"$SVNREV}
+ SVNREV=${SVNREV:+$C_$prompt_colors[doubledot]$_C $C_$SVNSTATUS$_C"r"$SVNREV}
[ "$DEBUG" = "yes" ] && echo
# get git status
@@ -152,7 +152,7 @@ old_precmd()
# then we reduce the path until it reaches the last path element,
spaceleft=$(($spaceleft - $GITBRANCHSIZE))
[ $spaceleft -lt $minimalpathsize ] && spaceleft=$minimalpathsize
- GITBRANCH=${GITBRANCH:+$C_$prompt_colors[doubledot]$_C:$C_"$(get_git_status)"$_C$GITBRANCH}
+ GITBRANCH=${GITBRANCH:+$C_$prompt_colors[doubledot]$_C $C_"$(get_git_status)"$_C$GITBRANCH}
CURDIR="$C_$prompt_colors[path]$_C%`echo $spaceleft`<..<"$MY_PATH"%<<$C_$color[none]$_C"
[ "$DEBUG" = "yes" ] && echo