mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
blinks theme: prompt now shows if you're in a Hg/Mercurial folder
This commit is contained in:
parent
1120f97305
commit
e54a9927c2
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue