None of these are clever. They are just the habits that survived, because each one removes a little friction many times a day.
- Reverse search everything. Ctrl + R beats retyping any command longer than ten characters.
- Name your aliases after verbs.
serve,migrate,reset-dbread like a to-do list. - Keep a scratch directory. One throwaway folder per day for experiments.
- Make the prompt show the branch. Fewer commits on the wrong one.
- Learn one new flag a week. Most tools you use daily can do more than you think.
# ~/.config/shell/aliases
alias serve='go run ./cmd/app serve'
alias reset-db='dropdb app_dev && createdb app_dev && make migrate'
mkcd() { mkdir -p "$1" && cd "$1"; }
None of this needs a framework. A plain file of aliases and two small functions, kept in version control, travels with you to every new machine.
The best productivity tip is to notice when you type the same thing twice, and to automate it the third time.
