mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-04 19:07:00 +00:00
Fix issue with git status check
This commit is contained in:
parent
908d4f084d
commit
e0a0205b73
@ -1,7 +1,4 @@
|
|||||||
# name: ifij (forked from RobbyRussel)
|
# name: ifij (forked from RobbyRussel)
|
||||||
#
|
|
||||||
# You can override some default options in your config.fish:
|
|
||||||
# set -g theme_display_git_untracked no
|
|
||||||
|
|
||||||
function _status_color
|
function _status_color
|
||||||
# Returns a color for successful or failed previous command
|
# Returns a color for successful or failed previous command
|
||||||
@ -18,13 +15,7 @@ function _git_branch_name
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _is_git_dirty
|
function _is_git_dirty
|
||||||
# Returns whether or not there is anything uncommitted
|
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
|
||||||
set -l show_untracked (git config --bool bash.showUntrackedFiles)
|
|
||||||
set untracked ''
|
|
||||||
if [ "$theme_display_git_untracked" = 'no' -o "$show_untracked" = 'false' ]
|
|
||||||
set untracked '--untracked-files=no'
|
|
||||||
end
|
|
||||||
echo (command git status -s --ignore-submodules=dirty $untracked ^/dev/null)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function _git_info
|
function _git_info
|
||||||
|
Loading…
Reference in New Issue
Block a user