dotfiles/fish/functions/grt.fish
2022-11-27 14:20:25 +08:00

3 lines
127 B
Fish

function grt -d "cd into the top of the current repository or submodule"
cd (git rev-parse --show-toplevel; or echo ".")
end