diff --git a/dotconfig/fish/functions/gitcd.fish b/dotconfig/fish/functions/gitcd.fish new file mode 100644 index 0000000..b30a274 --- /dev/null +++ b/dotconfig/fish/functions/gitcd.fish @@ -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