From e0a0205b736d1613293518438cc246d67ce08a33 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 5 Mar 2018 10:23:56 -0800 Subject: [PATCH] Fix issue with git status check --- assets/default/fish/functions/fish_prompt.fish | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/assets/default/fish/functions/fish_prompt.fish b/assets/default/fish/functions/fish_prompt.fish index 97d9bd8..fc030e7 100644 --- a/assets/default/fish/functions/fish_prompt.fish +++ b/assets/default/fish/functions/fish_prompt.fish @@ -1,7 +1,4 @@ # 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 # Returns a color for successful or failed previous command @@ -18,13 +15,7 @@ function _git_branch_name end function _is_git_dirty - # Returns whether or not there is anything uncommitted - 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) + echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function _git_info