I knew that in common Unix shell, !! repeats the last command (try `sudo !!`, am...
David JONES @drj@typo.social
I knew that in common Unix shell, !! repeats the last command (try `sudo !!`, amazing), and i knew that this was a csh history thing. And I use !$ a fair amount, which means use the last argument from the previous command: for example, `mkdir blahblahblah` then `cd !$`.
I usually create remote git repos by direct push (which gitlab and sr.ht support, but public codeberg does not):
git push git@git.blah.blah:~drj/blablablah HEAD
I had to look up the csh syntax in the manual, but now i can avoid retyping the target when creating the origin (usually my next command):
git remote add origin !:2
(the :2 means the 2-nd argument of the previous command)