From: Pierre-Elliott Bécue Date: Mon, 7 Apr 2014 17:24:00 +0000 (+0200) Subject: [.bashrc] Fixing MINUS_CHAR problem X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=b6933be1a6ea058e83f7f23cef1a15668e42e528;p=config-20-100.git [.bashrc] Fixing MINUS_CHAR problem --- diff --git a/.bashrc b/.bashrc index 2125462..154bac0 100644 --- 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