gitcd (git clone + cd)

This commit is contained in:
deneb 2024-11-15 19:30:10 +01:00
parent 3961e16804
commit 5f1b53cb9e

View file

@ -0,0 +1,8 @@
function gitcd
if set -q argv[2]
set clonedir $argv[2]
else
set clonedir (basename -s '.git' $argv[1])
end
git clone $argv[1] $clonedir && cd $clonedir
end