1
0
mirror of https://github.com/mbollmann/fishpkgs.git synced 2024-10-27 20:34:02 +00:00
mbollmann_fishpkgs/functions/git_repository_root.fish
2021-06-02 11:51:44 +02:00

4 lines
155 B
Fish

function git_repository_root -d "Get the top level directory of the current git repository"
git_is_repo; and command git rev-parse --show-toplevel
end