]> gitweb.pimeys.fr Git - config-20-100.git/commitdiff
[.bashrc] Fixing MINUS_CHAR problem
authorPierre-Elliott Bécue <becue@crans.org>
Mon, 7 Apr 2014 17:24:00 +0000 (19:24 +0200)
committerPierre-Elliott Bécue <becue@crans.org>
Mon, 7 Apr 2014 17:24:25 +0000 (19:24 +0200)
.bashrc

diff --git a/.bashrc b/.bashrc
index 2125462560b17f2fe2656d6d79be793ee30c8621..154bac0404d9828db575640b2d999d63fef1cc60 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -63,7 +63,7 @@ vcs_formats(){
     local -i i
 
     # printf is for readability (it's easier to find %s)
-    msg="(%s)-[%s/%s"
+    msg="(%s)${MINUS_CHAR}[%s/%s"
     msg=$(printf $msg $vcs ${base/*\/} $branch)
 
     # If there is a revnumber, print it
@@ -77,12 +77,12 @@ vcs_formats(){
         msg="${msg}|%s"
         msg=$(printf $msg $action)
     fi
-    msg="${msg}]-"
+    msg="${msg}]${MINUS_CHAR}"
 
     msgs[1]=$msg
 
     # Same shit with colors
-    msg="${nocolor_prompt}${vcs_symbols_color}(${vcs_type_color}%s${vcs_symbols_color})${vcs_sep_color}-${vcs_symbols_color}[${vcs_repo_color}%s${vcs_sep_color}/${vcs_branch_color}%s"
+    msg="${nocolor_prompt}${vcs_symbols_color}(${vcs_type_color}%s${vcs_symbols_color})${vcs_sep_color}${MINUS_CHAR}${vcs_symbols_color}[${vcs_repo_color}%s${vcs_sep_color}/${vcs_branch_color}%s"
     msg=$(printf $msg $vcs ${base/*\/} $branch)
     if [ ! -z ${rev} ]; then
         msg="${msg}${vcs_colon_color}:${vcs_rev_color}%s"
@@ -92,7 +92,7 @@ vcs_formats(){
         msg="${msg}${nocolor_prompt}|${vcs_action_color}%s"
         msg=$(printf $msg $action)
     fi
-    msg="${msg}${vcs_symbols_color}]${nocolor_prompt}-"
+    msg="${msg}${vcs_symbols_color}]${nocolor_prompt}${MINUS_CHAR}"
     msgs[0]=$msg
 
     return 0