mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fixed bug in git scm plugin where the prompt info would not be displayed in subdirs.
This commit is contained in:
parent
8d4615ea8b
commit
fe4504cef9
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
function scm_in_git_repo () {
|
function scm_in_git_repo () {
|
||||||
if [[ -d .git ]]; then
|
if [ "$(git st 2>/dev/null)" ]; then
|
||||||
echo 1
|
echo 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -19,4 +19,4 @@ scm_parse_git_dirty () {
|
||||||
else
|
else
|
||||||
echo "$ZSH_THEME_SCM_PROMPT_CLEAN"
|
echo "$ZSH_THEME_SCM_PROMPT_CLEAN"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue