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 () {
|
||||
if [[ -d .git ]]; then
|
||||
if [ "$(git st 2>/dev/null)" ]; then
|
||||
echo 1
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue