fish-shell/share/functions/__fish_is_git_repository.fish
2017-02-05 19:22:35 -08:00

3 lines
167 B
Fish

function __fish_is_git_repository --description 'Check if the current directory is a git repository'
git rev-parse --is-inside-work-tree ^/dev/null >/dev/null
end