dotfiles/fish/functions/is_git_repo.fish

7 lines
87 B
Fish

function is_git_repo
git status >/dev/null ^/dev/null
not test $status -eq 128
end