mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Merge 0b336e8330 into 27c6becffd
This commit is contained in:
commit
01fd5cb194
1 changed files with 4 additions and 1 deletions
5
lib/git.zsh
Normal file → Executable file
5
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"
|
||||
|
|
@ -128,6 +128,9 @@ function git_compare_version() {
|
|||
if [[ $INSTALLED_GIT_VERSION[$i] -lt $INPUT_GIT_VERSION[$i] ]]; then
|
||||
echo -1
|
||||
return 0
|
||||
else
|
||||
echo 1
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
echo 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue