From 07e181c8757c3d4938b1ae8f8196a93e0a4dc188 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 7 Apr 2014 21:06:04 +0200 Subject: [PATCH] [.bashrc] hg and bzr command are fucking slow. --- .bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 # +-------------------+ -- 2.39.2