blinks theme: prompt now shows if you're in a Hg/Mercurial folder

This commit is contained in:
Steve Haßenpflug 2012-04-20 15:25:41 +02:00
commit e54a9927c2

View file

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