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
dd14e075
Commit
dd14e075
authored
Dec 21, 2011
by
julien@macbook
Browse files
Ignore submodules dirty in prompt info
parent
54f17588
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
dd14e075
...
@@ -6,7 +6,7 @@ function git_prompt_info() {
...
@@ -6,7 +6,7 @@ function git_prompt_info() {
# Checks if working tree is dirty
# Checks if working tree is dirty
parse_git_dirty
()
{
parse_git_dirty
()
{
if
[[
-n
$(
git status
-s
2> /dev/null
)
]]
;
then
if
[[
-n
$(
git status
-s
--ignore-submodules
=
dirty
2> /dev/null
)
]]
;
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