--- a/.bash_prompt Wed Sep 03 22:21:33 2014 +0900
+++ b/.bash_prompt Wed Sep 03 22:54:11 2014 +0900
local TIME="${G}\t${RESET}"
if [[ $RETURN_CODE != 0 ]] ; then
local RETCODE="${R}${RETURN_CODE}${RESET} "
${PROMPT_COLOR}\\\$${RESET} "
+# first find prompt in hgrc, then check it's actually enabled
+if grep -w '^prompt' ~/.hgrc &>/dev/null && hg help prompt &>/dev/null ; then
export VIRTUAL_ENV_DISABLE_PROMPT=1
export PROMPT_COMMAND=prompt_command