This commit is contained in:
Steve Haßenpflug 2017-05-02 02:22:37 +00:00 committed by GitHub
commit ab93bc4b9f

View file

@ -3,6 +3,8 @@
function _prompt_char() { function _prompt_char() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo "%{%F{blue}%}±%{%f%k%b%}" echo "%{%F{blue}%}±%{%f%k%b%}"
elif $(hg root > /dev/null 2>&1); then
echo "%{%F{blue}%}☿%{%f%k%b%}"
else else
echo ' ' echo ' '
fi fi