Commit b6933be1 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

[.bashrc] Fixing MINUS_CHAR problem

parent 5aec5d83
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment