Five shell habits I would tell my younger self
- Run
lswith the same glob beforerm. - Quote your variables. Always.
- Start scripts with
set -euo pipefailand learn what it does not cover. - Keep a notes file of commands that took more than ten minutes to figure out.
- Prefer a dry run flag, and write one into your own scripts.
None of this is new. It just took me too long to make it automatic.