mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-14 01:43:38 +08:00
7659554dea
This removes the use of caret redirections from share/completions and share/functions, in preparation for dropping support in fish.
4 lines
168 B
Fish
4 lines
168 B
Fish
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
|
|
end
|