Commit c45b844a authored by Kirill Sukhanov's avatar Kirill Sukhanov

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

parent b4371690
# name: RobbyRussel # name: RobbyRussel
#
# You can override some default options in your config.fish:
# set -g theme_disable_untracked_files_dirty yes
function _git_branch_name function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end end
function _is_git_dirty 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 end
function fish_prompt function fish_prompt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment