2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-27 20:25:12 +00:00
fish-shell/share/functions/__fish_is_git_repository.fish

4 lines
168 B
Fish
Raw Normal View History

2017-01-22 10:15:18 +00:00
function __fish_is_git_repository --description 'Check if the current directory is a git repository'
git rev-parse --is-inside-work-tree 2>/dev/null >/dev/null
2017-01-22 10:15:18 +00:00
end