Ten shell habits that saved me hours
May 2026
- Use
set -euo pipefailin scripts. - Keep a
~/binon your PATH. - Learn
Ctrl-Rhistory search. - Prefer
rgover grep for code. - Use
tmuxfor long jobs. - Alias common git commands.
- Quote your variables.
- Use
trapfor cleanup. - Write a
--dry-runflag. - Read the man page first.