mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-10 22:15:15 +08:00

Fish is deprecating `^` as a shortcut for stderr redirection. Replace with the more common and compatible `2>`. Fixes #609
4 lines
140 B
Fish
4 lines
140 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 2> /dev/null
|
|
end
|