From: Pierre-Elliott Bécue Date: Mon, 7 Apr 2014 20:57:47 +0000 (+0200) Subject: [.bashrc] Display vcs info on the right X-Git-Url: http://gitweb.pimeys.fr/?p=config-20-100.git;a=commitdiff_plain;h=51c718d3b6fdda03725762fa3ce932c60e311f6d [.bashrc] Display vcs info on the right --- diff --git a/.bashrc b/.bashrc index d1f9d88..e3162c9 100644 --- a/.bashrc +++ b/.bashrc @@ -480,7 +480,7 @@ nocolor_prompt="\[${nocolor}\]" # Est-ce qu'on veut que le prompt affiche les information sur l'éventuel dépôt # versionné dans lequel on se trouve #~# # Changez cette variable en "yes" pour l'afficher -display_vcs_info=yes +display_vcs_info=no # Génération de la ligne de "-" @@ -548,13 +548,13 @@ function prompt_command # Attention "\\\$" devient \$, c'est-à-dire # pour root, $ pour les autres PROMPT="${username_color}\u${symbols_color}@${host_color}\h ${symbols_color}\\\$ ${nocolor_prompt}" # On fusionne tout ça - PS1=$TITLE${line_color_prompt}$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$VCS_info${line_color_prompt}$POST_DIR$ERR'\n'$PROMPT + PS1=$TITLE${line_color_prompt}$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR${line_color_prompt}$POST_DIR$VCS_info$ERR'\n'$PROMPT else DIR="< "$DIR" >" ERR='[ $? ]'$MINUS_CHAR DATE="( \D{%H:%M:%S} )" PROMPT="\u@\h \\\$ " - PS1=$TITLE$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$VCS_info$POST_DIR$ERR'\n'$PROMPT + PS1=$TITLE$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$POST_DIR$VCS_info$ERR'\n'$PROMPT fi }