mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge branch 'master' of github.com:ashleydev/oh-my-zsh
This commit is contained in:
commit
3bb66a6ef7
4 changed files with 16 additions and 18 deletions
|
|
@ -503,41 +503,41 @@ _git_prompt__dirty_state ()
|
|||
_big_repo='yes'
|
||||
local line
|
||||
while IFS=$'\n' read line; do
|
||||
if [[ "$line" =~ '^M' ]]; then
|
||||
if [[ "$line" = M* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_MODIFIED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DIRTY='yes'
|
||||
fi
|
||||
if [[ "$line" =~ '^A' ]]; then
|
||||
if [[ "$line" = A* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_ADDED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DIRTY='yes'
|
||||
fi
|
||||
if [[ "$line" =~ '^R' ]]; then
|
||||
if [[ "$line" = R* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_RENAMED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DIRTY='yes'
|
||||
fi
|
||||
if [[ "$line" =~ '^C' ]]; then
|
||||
if [[ "$line" = C* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_COPIED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DIRTY='yes'
|
||||
fi
|
||||
if [[ "$line" =~ '^D' ]]; then
|
||||
if [[ "$line" = D* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DELETED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DIRTY='yes'
|
||||
fi
|
||||
|
||||
if [[ "$line" =~ '^\?\? ' ]]; then
|
||||
if [[ "$line" = \?\?* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_WORKTREE_UNTRACKED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_WORKTREE_DIRTY='yes'
|
||||
fi
|
||||
if [[ "$line" =~ '^ M' ]]; then
|
||||
if [[ "$line" = \ M* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_WORKTREE_MODIFIED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_WORKTREE_DIRTY='yes'
|
||||
fi
|
||||
if [[ "$line" =~ '^ D' ]]; then
|
||||
if [[ "$line" = \ D* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_WORKTREE_DELETED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_WORKTREE_DIRTY='yes'
|
||||
fi
|
||||
|
||||
if [[ "$line" =~ '^UU' ]]; then
|
||||
if [[ "$line" = UU* ]]; then
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_UNMERGED='yes'
|
||||
GIT_PROMPT_DIRTY_STATE_INDEX_DIRTY='yes'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue