DEV Community

Quickly Change Directory to the Repo You Just Cloned

Rob Hoelz on July 31, 2018

Originally published at hoelz.ro A common pattern in my shell usage is something like this: $ mkdir a-directory-name $ cd !$ Enter f...
Collapse
 
moopet profile image
Ben Sinclair • Edited

I know it's not addressing the crux of your post, but Alt-. does the last word on the previous command.
So I do:

git clone whatever wherever
cd <alt-.>

and I am happy :)

Collapse
 
hoelzro profile image
Rob Hoelz

Yeah, Alt-. is a great alternative to !$!