dotfiles/dotconfig/fish/functions/gitcd.fish

9 lines
156 B
Fish
Raw Normal View History

2024-11-15 19:30:10 +01:00
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