mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 09:27:38 +00:00
4 lines
167 B
Fish
4 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
|