]> gitweb.pimeys.fr Git - config-20-100.git/commitdiff
Oubli de _prompt pour la couleur nocolor
authorVincent Le Gallic <legallic@crans.org>
Thu, 25 Jul 2013 21:45:25 +0000 (23:45 +0200)
committerVincent Le Gallic <legallic@crans.org>
Thu, 25 Jul 2013 21:45:25 +0000 (23:45 +0200)
.bashrc

diff --git a/.bashrc b/.bashrc
index 778e45ee702695c16192d61507093bc3a91461c2..3b798d3265c04594efcf458750304facb24c7585 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -79,7 +79,7 @@ get_vcs_info () {
         LBRANCH=$(eval "${BRANCH[$DIR]}")
         LTYPE="${TYPE[$DIR]}"
         if [ "$color_prompt" = yes ]; then
-            VCS_info="${nocolor}${vcs_symbols_color}(${vcs_type_color}$LTYPE${vcs_symbols_color})-${vcs_symbols_color}[${vcs_branch_color}$LBRANCH${vcs_symbols_color}]${nocolor}"
+            VCS_info="${nocolor_prompt}${vcs_symbols_color}(${vcs_type_color}$LTYPE${vcs_symbols_color})-${vcs_symbols_color}[${vcs_branch_color}$LBRANCH${vcs_symbols_color}]${nocolor_prompt}"
         else
             VCS_info="($LTYPE)-[$LBRANCH]"
         fi
@@ -208,7 +208,7 @@ function prompt_command
         # il faut changer $((31+($?==0)*6)) si vous y tenez vraiment et que vous comprenez ce que vous faites
         ERR='[ \[\e[1;$((31+($?==0)*6))m\]$?'${line_color_prompt}' ]'$MINUS_CHAR
         DATE="( ${date_color}\D{%H:%M:%S}${line_color_prompt} )"
-        PROMPT="${username_color}\u${symbols_color}@${host_color}\h ${symbols_color}\$ ${nocolor}"
+        PROMPT="${username_color}\u${symbols_color}@${host_color}\h ${symbols_color}\$ ${nocolor_prompt}"
         PS1=$TITLE${line_color_prompt}$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$VCS_info${line_color_prompt}$POST_DIR$ERR'\n'$PROMPT
     else
         DIR="< "$DIR" >"