Posted by zdw 1 day ago
Ctrl + _ (Ctrl + underscore) bind '"\C-x\C-u": undo'
bind '"\C-_": undo'Quite a few useful ones
For the CTRL + R tip, you can make it even better if you install fzf. Massively improves searching through history. It's worth the install just for that one feature.
Best thing I ever did as a dev was start spending more time in the terminal. Getting familiar with the tools and how they interact makes life so much easier.
I've never used the majority of these tricks for decades, except for brace expansion, process substitutions, and complex redirections.
Regarding experience, I'm also struck by how many "experienced" engineers are just clueless with the keyboard.
$ some_long_command -with -args -easily -forgotten # thatspecialthing
... Some weeks later .. $ CTRL-R<specialthing>
.. finds: $ some_long_command -with -args -easily -forgotten # thatspecialthing
Need to see all the special things you've done this week/whenever? $ history | grep "\#"
...Makes for a definite return of sanity ..
I could kiss you.. this alone is amazing!
If you are feeling brave