Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
4a7392fd
Commit
4a7392fd
authored
Jun 07, 2011
by
Adam Lindberg
Browse files
Fix git R and M status when used together
parent
73946a60
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/guru.zsh-theme
View file @
4a7392fd
...
@@ -35,7 +35,7 @@ custom_git_prompt_status() {
...
@@ -35,7 +35,7 @@ custom_git_prompt_status() {
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
fi
fi
if $(echo "$INDEX" | grep '^
M ' &> /dev/null); then
if $(echo "$INDEX" | grep '^
.
M ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
...
@@ -46,7 +46,7 @@ custom_git_prompt_status() {
...
@@ -46,7 +46,7 @@ custom_git_prompt_status() {
if $(echo "$INDEX" | grep '^D ' &> /dev/null); then
if $(echo "$INDEX" | grep '^D ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_DELETED$STATUS"
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_DELETED$STATUS"
fi
fi
if $(echo "$INDEX" | grep '^R
' &> /dev/null); then
if $(echo "$INDEX" | grep '^R' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_RENAMED$STATUS"
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_RENAMED$STATUS"
fi
fi
if $(echo "$INDEX" | grep '^M ' &> /dev/null); then
if $(echo "$INDEX" | grep '^M ' &> /dev/null); then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment