Add option to not show untracked files as dirty in git status

This commit is contained in:
Kirill Sukhanov 2015-04-26 20:15:10 +03:00
parent b43716907f
commit c45b844a55

View File

@ -1,10 +1,18 @@
# name: RobbyRussel
#
# You can override some default options in your config.fish:
# set -g theme_disable_untracked_files_dirty yes
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
if [ "$theme_disable_untracked_files_dirty" = 'yes' ]
echo (command git status -s --ignore-submodules=dirty --untracked-files=no ^/dev/null)
else
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
end
function fish_prompt