mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-15 01:24:28 +08:00
![Itzik Ephraim](/assets/img/avatar_default.png)
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
|