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
Ohmyzsh
Commits
5aed0aed
Commit
5aed0aed
authored
Dec 04, 2012
by
Robby Russell
Browse files
Merge pull request #875 from ttddyy/prompt_git-remove
prompt git-rm as deleted
parents
d88fad33
52733cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
5aed0aed
...
@@ -80,6 +80,8 @@ git_prompt_status() {
...
@@ -80,6 +80,8 @@ git_prompt_status() {
fi
fi
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
"
elif
$(
echo
"
$INDEX
"
|
grep
'^D '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_DELETED$STATUS
"
elif
$(
echo
"
$INDEX
"
|
grep
'^AD '
&> /dev/null
)
;
then
elif
$(
echo
"
$INDEX
"
|
grep
'^AD '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_DELETED$STATUS
"
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_DELETED$STATUS
"
fi
fi
...
...
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