dotfiles/dotconfig/fish/functions/gitcd.fish
2024-11-15 19:30:20 +01:00

8 lines
156 B
Fish

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