Commit 2bca3f09 authored by Kirill Sukhanov's avatar Kirill Sukhanov

Changes for show dirty option after the comment in code review

parent c45b844a
# name: RobbyRussel # name: RobbyRussel
# #
# You can override some default options in your config.fish: # You can override some default options in your config.fish:
# set -g theme_disable_untracked_files_dirty yes # set -g theme_display_git_untracked no
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
if [ "$theme_disable_untracked_files_dirty" = 'yes' ] set -l show_untracked (git config --bool bash.showUntrackedFiles)
echo (command git status -s --ignore-submodules=dirty --untracked-files=no ^/dev/null) set dirty ''
else if [ "$theme_display_git_untracked" = 'no' -o "$show_untracked" = 'false' ]
echo (command git status -s --ignore-submodules=dirty ^/dev/null) set dirty '--untracked-files=no'
end end
echo (command git status -s --ignore-submodules=dirty $dirty ^/dev/null)
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