Shell Aliases That Save Us an Hour a Week
None of these aliases is clever. Together they remove a surprising amount of typing from an ordinary week.
Reading work aloud is the cheapest editing tool there is. Your ear catches rhythm problems that your eye skips over, especially in long sentences.
.aliases
alias gs='git status -sb'
alias gl='git log --oneline --graph -20'
alias sync-site='rsync -avz --delete public/ studio:/var/www/site/'
alias webp='for f in *.jpg; do cwebp -q 80 "$f" -o "${f%.jpg}.webp"; done'
Every studio accumulates habits it never chose. Once a year we list them and ask whether each one still earns its place.
Continue reading
Related posts
Writing a Clean WordPress Shortcode
Attributes, escaping, and output buffering done the boring way.
A Small Go Server for Static Previews
Serve a folder, add caching headers, and ship a single binary.
Parsing Markdown Front Matter in Python
Split, parse, and validate the YAML block at the top of a file.
Comments · 1
Small typo in the third paragraph, but otherwise a perfect read with my morning coffee.