Essential Shell Scripts for Daily Developer Productivity
By
speckx
An everything bagel for the brain. Substantive, layered, well-seasoned.
Summary
A developer shares their collection of frequently used shell scripts from over a decade of maintaining dotfiles. The article highlights practical utilities like clipboard management tools (copy, pasta, pastas), directory navigation helpers (cpwd), and other productivity scripts that automate common terminal tasks. The author explains how these simple wrappers around system utilities save time and are used daily in their workflow.
Key quotes
· 4 pulledIn my decade-plus of maintaining my dotfiles, I've written a lot of little shell scripts.
Clipboardcopy and pasta are simple wrappers around system clipboard managers, like pbcopy on macOS and xclip on Linux. I use these all the time.
pastas prints the current state of your clipboard to stdout, and then whenever the clipboard changes, it prints the new version.
cpwd copies the current directory to the clipboard. Basically pwd | copy. I often use this when I'm in a directory and I want use that directory in another terminal.
You might also wanna read

How Shell Scripting Transformed My Development Environment Setup
The article discusses the importance of maintaining a controlled and efficient development environment, highlighting the frustrations of set
DEV Community·10mo agoSAST: Automating Repetitive Command-Line Tasks for Developers
The article promotes a tool called SAST (Stop running commands one by one yourself) that automates repetitive command-line tasks. It address
