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
8f332318
Commit
8f332318
authored
Nov 06, 2009
by
meh
Committed by
Robby Russell
Nov 09, 2009
Browse files
Fixed issue #25.
parent
e24709a2
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
8f332318
...
@@ -16,7 +16,7 @@ function git_prompt_info() {
...
@@ -16,7 +16,7 @@ function git_prompt_info() {
}
}
parse_git_dirty
()
{
parse_git_dirty
()
{
if
[[
$(
git status |
tail
-n1
)
!=
"nothing to commit (working directory clean)"
]]
;
then
if
[[
$(
(
git status
&>
/
dev/null
)
|
tail
-
n1
)
!=
"nothing to commit (working directory clean)"
]]
;
then
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
else
else
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
...
...
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