dotfiles/config/fish/functions/grel.fish
2026-04-30 09:37:14 +02:00

4 lines
166 B
Fish

function grel -d "Print path relative to repository root"
set -l repoDir (git rev-parse --show-prefix)
test -n "$repoDir"; and echo "/$repoDir"; or echo "/"
end