dotfiles/fish/functions/git_dirty.fish

8 lines
98 B
Fish

function git_dirty
if not is_git_repo
return 1
end
not git diff HEAD --quiet ^/dev/null
end