Scripts Library

Curating and organising my most‑used automation scripts into a cohesive library.

After years of sprinkling shell scripts across various projects, I decided it was time to centralise the routines I rely on every day. I’m talking about the little helpers that clean log directories, deploy services, rebuild containers, backup databases, and reset development environments. Having them in one place makes them easier to maintain, discover, and share with teammates.

My plan is to curate these scripts into a cohesive library with a consistent interface. Each script is written in Bash with flags and environment detection to make it portable: for example, deploy.sh reads configuration from .env files and uses Docker Compose to bring up services, while cleanup.sh takes optional arguments to specify which directories to prune. I’ve added usage descriptions and sanity checks to prevent accidental data loss.

I’m also setting up a simple loader script that adds the library’s path to $PATH so any script can be invoked directly from anywhere on my machine. A help.sh script lists available commands and their purpose. Some tasks that used to be one‑offs, like bulk renaming files or converting Markdown to PDF, are now reusable functions in this library.

The next step is to add more documentation and examples, and then publish the library as an open‑source repository. I’m considering writing a small CLI wrapper in Go or Node to provide argument parsing and tab completion. For now, it’s just satisfying to know that my automation toolkit is organised and one git pull away on any new machine.