Re:A Terminal Case of Linux
by bloopernova on Monday May 29, 2023 @06:10PM
(#36118702)
Nice! I'll have to add those to my wall of index cards with useful commands.
I use !!:$ occasionally.
If I wanted to do the cat/vim switcheroo you described, I'd more likely do:
<UpArrow><Esc>vcwvi<Esc>:wq<Enter><Enter>
Which is a greater number of keypresses, but more flexible and requires less thought....as they say: Unix is user-friendly — it's just choosy about who its friends are.
Re:A Terminal Case of Linux
by boring_twenties on Tuesday May 30, 2023 @03:32AM
(#36122108)
Those all work in bash too, I believe they come from csh
In zsh, there are equivalent expansions:
So, e.g.: (becomes)