Use short name (MERCURIAL => HG) for variable LP_ENABLE_MERCURIAL
This commit is contained in:
parent
36954546d7
commit
4b1f4646de
@ -220,7 +220,7 @@ LP_MERCURIAL_MARK=${LP_MERCURIAL_MARK:-"☿"}
|
|||||||
LP_SUBVERSION_MARK=${LP_SUBVERSION_MARK:-"‡"}
|
LP_SUBVERSION_MARK=${LP_SUBVERSION_MARK:-"‡"}
|
||||||
LP_ENABLE_GIT=${LP_ENABLE_GIT:-1}
|
LP_ENABLE_GIT=${LP_ENABLE_GIT:-1}
|
||||||
LP_ENABLE_SVN=${LP_ENABLE_SVN:-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=${LP_COLOR_PATH:-$BOLD_WHITE}
|
||||||
LP_COLOR_PATH_ROOT=${LP_COLOR_PATH_ROOT:-$BOLD_YELLOW}
|
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
|
# Get the branch name of the current directory
|
||||||
_lp_hg_branch()
|
_lp_hg_branch()
|
||||||
{
|
{
|
||||||
if [[ $LP_ENABLE_MERCURIAL == 0 ]] ; then
|
if [[ $LP_ENABLE_HG == 0 ]] ; then
|
||||||
return ""
|
return ""
|
||||||
fi
|
fi
|
||||||
local branch
|
local branch
|
||||||
@ -626,7 +626,7 @@ _lp_hg_branch()
|
|||||||
# - TODO: yellow if there is some commits not pushed
|
# - TODO: yellow if there is some commits not pushed
|
||||||
_lp_hg_branch_color()
|
_lp_hg_branch_color()
|
||||||
{
|
{
|
||||||
if [[ $LP_ENABLE_MERCURIAL == 0 ]] ; then
|
if [[ $LP_ENABLE_HG == 0 ]] ; then
|
||||||
return ""
|
return ""
|
||||||
fi
|
fi
|
||||||
command -v hg >/dev/null 2>&1 || return 1;
|
command -v hg >/dev/null 2>&1 || return 1;
|
||||||
|
@ -38,6 +38,6 @@ LP_ENABLE_SVN=1
|
|||||||
|
|
||||||
# Do you want to use the mercurial special features ?
|
# Do you want to use the mercurial special features ?
|
||||||
# Recommended value is 1
|
# Recommended value is 1
|
||||||
LP_ENABLE_MERCURIAL=1
|
LP_ENABLE_HG=1
|
||||||
|
|
||||||
# vim: set et sts=4 sw=4 tw=120 ft=sh:
|
# vim: set et sts=4 sw=4 tw=120 ft=sh:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user