-- Leo's gemini proxy

-- Connecting to idiomdrottning.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; lang=en

git clone yadda.yadda/yadda; cd yadda


I can’t believe there isn’t a flag to git clone to also cd into the newly cloned directory.


If there is please let me know. (Apparently that’s going to be unpossible since the shell is a parent process.)


Writing a shell command for it for now because if I have to type cd obvious-name one more time my hands will fall off.


gitc () { git clone "$1"; cd "`basename "$1" .git`" }

(Thanks to mhd for writing in and suggesting basename from coreutils instead of my home-made path-remover!♥︎)

-- Response ended

-- Page fetched on Thu Mar 28 17:42:44 2024