oh-my-fish/lib/git/git_is_repo.fish
2015-08-27 00:20:13 +09:00

4 lines
138 B
Fish

function git_is_repo -d "Check if directory is a repository"
test -d .git; or command git rev-parse --git-dir >/dev/null ^/dev/null
end