Add cd to git root (cdg)

This commit is contained in:
Tim
2025-06-01 19:46:05 +02:00
parent afa80e3a13
commit 460aee58a7

View File

@ -21,6 +21,14 @@ abbr -a gaa git add -A
if type -q "lazygit"
abbr -a lg lazygit
end
function cdg
set git_root (git rev-parse --show-toplevel 2>/dev/null)
if test -d $git_root
cd $git_root
else
echo "Not inside a Git repository."
end
end
# doctrine
abbr -a scme sc make:entity