mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 16:08:23 +08:00
4 lines
138 B
Fish
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
|