Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 2175300

Browse files
committed
Fix git status so we know we are in a git repository in subdirectories as well, not just when in the top level of the repo.
1 parent 32af709 commit 2175300

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎zsh/prompt.zsh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ git_branch() {
1414
}
1515

1616
git_dirty() {
17-
if [[ ! -d .git ]]
17+
if $(! $git status -s &> /dev/null)
1818
then
1919
echo ""
2020
else

0 commit comments

Comments
 (0)