X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.bashrc;fp=.bashrc;h=d1f9d881eee7e9d1b293b51169a3cb90cb4f196f;hb=07e181c8757c3d4938b1ae8f8196a93e0a4dc188;hp=968474abf171aedbc8aab90a4cc4a108c3baed48;hpb=ab34617c4c4c817b55a76fe24c503263eab94629;p=config-20-100.git diff --git a/.bashrc b/.bashrc index 968474a..d1f9d88 100644 --- a/.bashrc +++ b/.bashrc @@ -147,8 +147,9 @@ git_detect(){ # Mercurial isn't hg_detect(){ check_command hg || return 1 - vcs_comm[basedir]="$(hg root 2> /dev/null)" || return 1 - return 0 + vcs_comm[detect_need_file]=store + detect_by_dir '.hg' + return $? } # .svn in each directories @@ -160,7 +161,6 @@ svn_detect() { bzr_detect(){ check_command bzr || return 1 -# vcs_comm[basedir]=$(bzr root 2>/dev/null) || return 1 vcs_comm[detect_need_file]=branch/format detect_by_dir '.bzr' return $? @@ -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=no +display_vcs_info=yes # Génération de la ligne de "-" @@ -595,7 +595,7 @@ else TITLE='' fi -# On regénére le prompt après chaque commande +# On régénére le prompt après chaque commande PROMPT_COMMAND=prompt_command # +-------------------+