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
3c87d483
Commit
3c87d483
authored
May 04, 2010
by
Andy Fowler
Committed by
Robby Russell
May 06, 2010
Browse files
makes git status prompt 4x faster
(via git status -s, benchmarked)
parent
be66fe9d
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
3c87d483
...
...
@@ -5,7 +5,7 @@ function git_prompt_info() {
}
parse_git_dirty
()
{
if
[[
$
(
(
git status
2
>
/
dev/null
)
|
tail
-
n1
)
!=
"nothing to commit (working directory clean)"
]]
;
then
if
[[
-n
$(
git status
-s
2> /dev/null
)
]]
;
then
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
else
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