How “Exit Traps” Can Make Your Bash Scripts Way More Robust And Reliable
There is a simple, useful idiom to make your bash scripts more robust – ensuring they always perform necessary cleanup operations, even when something unexpected goes wrong.
—
http://redsymbol.net/articles/bash-exit-traps/?ck_subscriber_id=512838448
Asides
The musings of bluz71
The musings of bluz71
This is a 2023 followup to my 2018 Bash Shell Tweaks & Tips article. Since that last article there has been a renaissance in shell-agnostic command line tooling, often implemented in high-performance Rust, that has elevated the interactive shell experience.
—
https://bluz71.github.io/2023/06/02/maximize-productivity-of-the-bash-shell.html
charmbracelet/mods
charmbracelet/mods
AI for the command line, built for pipelines. LLM based AI is really good at interpreting the output of commands and returning the results in CLI friendly text formats like Markdown. Mods is a simple tool that makes it super easy to use AI on the command line and in your pipelines.
—
https://github.com/charmbracelet/mods
pure bash bible
pure bash bible
The goal of this book is to document commonly-known and lesser-known methods of doing various tasks using only built-in bash features. Using the snippets from this bible can help remove unneeded dependencies from scripts and in most cases make them faster.
—
https://github.com/dylanaraps/pure-bash-bible
charmbracelet/gum
charmbracelet/gum
A tool for glamorous shell scripts. Leverage the power of Bubbles and Lip Gloss in your scripts and aliases without writing any Go code! The above example is running from a single shell script (source).
—
https://github.com/charmbracelet/gum
5 Inbuilt Bash Variables That Ev
5 Inbuilt Bash Variables That Every Developer Should Know
Developers typically use Bash to write shell scripts by invoking other programs as commands and adding inbuilt Bash language features. Also, every Unix or Unix-like system user uses Bash to communicate with the operating system via GUI terminal programs.
—
https://levelup.gitconnected.com/5-inbuilt-bash-variables-that-every-developer-should-know-a2d60721a472
Intro to Bash scripting for scra
Intro to Bash scripting for scraping and automation – Trickster Dev
Bash is a Linux/UNIX program that reads users commands from the users, parses them and executes the appropriate programs through OS-specific APIs. Since it covers these APIs and provides some extra features on top of them this kind of program is called a shell.
—
https://www.trickster.dev/post/intro-to-bash-scripting-for-scraping-and-automation/
5 Bash String Manipulation Metho
5 Bash String Manipulation Methods That Help Every Developer
Bash became every Unix-like or Unix-based operating system’s default automation language. Every system administrator, DevOps engineer, and programmer typically uses Bash to write shell scripts with repetitive command sequences.
—
https://levelup.gitconnected.com/5-bash-string-manipulation-methods-that-help-every-developer-49d4ee38b593
Make Your CLI Demos a Breeze wit
Make Your CLI Demos a Breeze with Zero Stress and Zero Mistakes
Running live demos can be stressful. You know what you want to say and show. You prepare the CLI commands you want to run to best showcase what you’ve built, but then you waste time typing long commands; you make typos; the commands fail or take way too long to complete.
—
https://martinheinz.dev/blog/94
gabedemattos/CommitAI
gabedemattos/CommitAI
CommitAI is a tool designed to generate concise and engaging commit messages for your staged git changes using OpenAI’s GPT-3.5 Turbo. It also provides options for semantic commit messages and custom prompts. Pull requests are welcome.
—
https://github.com/gabedemattos/CommitAI