mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 7bf70fffb7 into 291e96dcd0
This commit is contained in:
commit
629e52874f
1 changed files with 3 additions and 2 deletions
|
|
@ -25,8 +25,9 @@ ys_hg_prompt_info() {
|
|||
# make sure this is a hg dir
|
||||
if [ -d '.hg' ]; then
|
||||
echo -n "${YS_VCS_PROMPT_PREFIX1}hg${YS_VCS_PROMPT_PREFIX2}"
|
||||
echo -n $(hg branch 2>/dev/null)
|
||||
if [ -n "$(hg status 2>/dev/null)" ]; then
|
||||
hgbranch=$(hg branch 2>/dev/null)
|
||||
echo -n $hgbranch
|
||||
if [ -n "$hgbranch" ]; then
|
||||
echo -n "$YS_VCS_PROMPT_DIRTY"
|
||||
else
|
||||
echo -n "$YS_VCS_PROMPT_CLEAN"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue