From: Vincent Le Gallic Date: Thu, 25 Jul 2013 21:45:25 +0000 (+0200) Subject: Oubli de _prompt pour la couleur nocolor X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=a64e61f1761b117c9e22c9ebe61627e0d54af71f;p=config-20-100.git Oubli de _prompt pour la couleur nocolor --- diff --git a/.bashrc b/.bashrc index 778e45e..3b798d3 100644 --- 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" >"