Re:A shell exclamation mark is not for yelling. Be lazy.
by hnlmorg on Wednesday August 12, 2026 @06:41AM
(#49270313)
Thanks for the tips. These days I don’t use sh derivatives as my primary shell and the shell
I do use has a few features to make command search more ergonomic and safer. But these are useful tips nonetheless
> I've been burnt before using ! and forgetting what command I typed previously
If you want to make sure you do not execute commands you did not intend to, the section linked below is a great start:
- https://refp.se/articles/your-shell-and-the-lazy-exclamation...
You may also look into `magic-space` which makes the expansion of event-designators happen inline, I thought about including it but the article felt long even without it.
Thanks for reading the article, I hope it was a worthwhile read even with alternate workflows elsewhere!