mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
fix parse_git_dirty
This commit is contained in:
parent
27c6becffd
commit
0c1ba438c9
1 changed files with 1 additions and 1 deletions
2
lib/git.zsh
Normal file → Executable file
2
lib/git.zsh
Normal file → Executable file
|
|
@ -20,7 +20,7 @@ parse_git_dirty() {
|
|||
else
|
||||
GIT_STATUS=$(git status -s ${SUBMODULE_SYNTAX} -uno 2> /dev/null | tail -n1)
|
||||
fi
|
||||
if [[ -n $(git status -s ${SUBMODULE_SYNTAX} -uno 2> /dev/null) ]]; then
|
||||
if [[ -n $GIT_STATUS ]]; then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
||||
else
|
||||
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue