diff --git a/liquidprompt b/liquidprompt index a998ee9..97b521d 100755 --- a/liquidprompt +++ b/liquidprompt @@ -220,7 +220,7 @@ LP_MERCURIAL_MARK=${LP_MERCURIAL_MARK:-"☿"} LP_SUBVERSION_MARK=${LP_SUBVERSION_MARK:-"‡"} LP_ENABLE_GIT=${LP_ENABLE_GIT:-1} LP_ENABLE_SVN=${LP_ENABLE_SVN:-1} -LP_ENABLE_MERCURIAL=${LP_ENABLE_MERCURIAL:-1} +LP_ENABLE_HG=${LP_ENABLE_HG:-1} LP_COLOR_PATH=${LP_COLOR_PATH:-$BOLD_WHITE} LP_COLOR_PATH_ROOT=${LP_COLOR_PATH_ROOT:-$BOLD_YELLOW} @@ -610,7 +610,7 @@ _lp_git_branch_color() # Get the branch name of the current directory _lp_hg_branch() { - if [[ $LP_ENABLE_MERCURIAL == 0 ]] ; then + if [[ $LP_ENABLE_HG == 0 ]] ; then return "" fi local branch @@ -626,7 +626,7 @@ _lp_hg_branch() # - TODO: yellow if there is some commits not pushed _lp_hg_branch_color() { - if [[ $LP_ENABLE_MERCURIAL == 0 ]] ; then + if [[ $LP_ENABLE_HG == 0 ]] ; then return "" fi command -v hg >/dev/null 2>&1 || return 1; diff --git a/liquidpromptrc-dist b/liquidpromptrc-dist index 4864ced..4c16173 100644 --- a/liquidpromptrc-dist +++ b/liquidpromptrc-dist @@ -38,6 +38,6 @@ LP_ENABLE_SVN=1 # Do you want to use the mercurial special features ? # Recommended value is 1 -LP_ENABLE_MERCURIAL=1 +LP_ENABLE_HG=1 # vim: set et sts=4 sw=4 tw=120 ft=sh: