From 70e4ac9e553c37a3595643c3cd3ebc22406e955b Mon Sep 17 00:00:00 2001 From: Conrado Buhrer Date: Wed, 10 Apr 2013 13:57:21 -0300 Subject: [PATCH] fixed: hg branch grep+awk problem #197 --- themes/base.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 18c6c9d..5a5edd3 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -108,8 +108,8 @@ function hg_prompt_vars { fi SCM_PREFIX=${HG_THEME_PROMPT_PREFIX:-$SCM_THEME_PROMPT_PREFIX} SCM_SUFFIX=${HG_THEME_PROMPT_SUFFIX:-$SCM_THEME_PROMPT_SUFFIX} - SCM_BRANCH=$(hg summary 2> /dev/null | grep branch | awk '{print $2}') - SCM_CHANGE=$(hg summary 2> /dev/null | grep parent | awk '{print $2}') + SCM_BRANCH=$(hg summary 2> /dev/null | grep branch: | awk '{print $2}') + SCM_CHANGE=$(hg summary 2> /dev/null | grep parent: | awk '{print $2}') } function rvm_version_prompt { -- 2.17.1