Files
dotfiles/fish/.config/fish/functions/git_is_repo.fish
2019-07-30 11:01:36 -04:00

6 lines
172 B
Fish

function git_is_repo -d "Test if the current directory is a Git repository"
if not command git rev-parse --git-dir > /dev/null 2>/dev/null
return 1
end
end