Add eval to SCM_BRANCH in powerline theme

This commit is contained in:
Anthony Wharton
2019-03-07 20:12:50 +00:00
parent 044ec29662
commit 81c3f70900

View File

@@ -99,7 +99,7 @@ function __powerline_scm_prompt {
elif [[ "${SCM_HG_CHAR}" == "${SCM_CHAR}" ]]; then
scm_prompt+="${SCM_CHAR}${SCM_BRANCH}${SCM_STATE}"
fi
echo "${scm_prompt}${scm}|${color}"
echo "$(eval "echo ${scm_prompt}")${scm}|${color}"
fi
}