bens-dotfiles/fish/.config/fish/functions/is_git_dirty.fish

4 lines
110 B
Fish

function is_git_dirty
is_git; and [ (git status | tail -n1) != "nothing to commit, working tree clean" ]
end