From: Vincent Le Gallic Date: Thu, 25 Jul 2013 23:54:07 +0000 (+0200) Subject: Merge branch 'master' into perso : VCS par variable X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=9b2ac25dff2033c53926312350573a00f7bb0241;hp=ff73a3e6fd8ae56fada5050821e60df2b292fdbe;p=config-20-100.git Merge branch 'master' into perso : VCS par variable Conflicts: .bashrc --- diff --git a/.bashrc b/.bashrc index 74cc232..ae053a3 100644 --- a/.bashrc +++ b/.bashrc @@ -171,6 +171,11 @@ else color_prompt=no fi +# 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=no + # Génération de la ligne de "-" function gen_minus_line @@ -195,7 +200,9 @@ function prompt_command # À décommenter si on veut des infos # quand on se trouve dans un dépôt versionné - get_vcs_info + if [ "$display_vcs_info" = yes ]; then + get_vcs_info + fi pwd=${PWD/#$HOME/'~'} if (( ${#pwd} + ${VCS_size} + 27 > COLUMNS )); then