lowne_fish-prompt-metro/functions/git_repository_root.fish

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