mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Simplify git dirty verbose setting check
This commit is contained in:
parent
0ae2036788
commit
5f00816c36
@ -723,10 +723,9 @@ function __bobthefish_prompt_git -S -a current_dir -d 'Display the actual git st
|
|||||||
if [ "$theme_display_git_dirty" != 'no' ]
|
if [ "$theme_display_git_dirty" != 'no' ]
|
||||||
set -l show_dirty (command git config --bool bash.showDirtyState ^/dev/null)
|
set -l show_dirty (command git config --bool bash.showDirtyState ^/dev/null)
|
||||||
if [ "$show_dirty" != 'false' ]
|
if [ "$show_dirty" != 'false' ]
|
||||||
if [ "$theme_display_git_dirty_verbose" = 'yes' ]
|
set dirty (command git diff --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_dirty_glyph")
|
||||||
set dirty (command git diff --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_dirty_glyph"(__bobthefish_git_dirty_verbose))
|
if [ "$dirty" -a "$theme_display_git_dirty_verbose" = 'yes' ]
|
||||||
else
|
set dirty "$dirty"(__bobthefish_git_dirty_verbose)
|
||||||
set dirty (command git diff --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_dirty_glyph")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user