8 lines
156 B
Fish
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
|