Re:New(ish) command line tools
by tomsmeding on Wednesday April 13, 2022 @03:45AM
(#31012132)
Given that I'm guaranteed to forget that I have this thing installed if I would install it, I'm just going to steal the idea and try to remember to use my editor instead of an ugly shell loop next time I want to rename many files. There's only a small difference, really, between transforming `1.txt 2.txt 3.txt` to `file1.md file2.md file3.md` and transforming to `mv 1.txt file1.md; mv 2.txt file2.md; mv 3.txt file3.md`.
[ Parent
| on HN ]
Re:New(ish) command line tools
by chrisshroba on Thursday April 14, 2022 @08:29AM
(#31025986)
You likely already know this, but just a reminder/tip that bash and zsh will let you edit the current command you’re entering in your editor of choice if you press ctrl+x ctrl+e (without releasing ctrl between). (Note if you’re using zsh without ohmyzsh, you’ll have to enable this manually [1])
I don't see how the shell could know whether you released the Ctrl key?
Re:New(ish) command line tools
by chrisshroba on Monday April 18, 2022 @03:11PM
(#31075100)
Whoops, you're right, I assumed my muscle memory was the source of truth heh.