When multiple versions of the same executable exist in your $PATH, the ‘is’ utility provides a clean way to discover all versions and their locations. This post demonstrates how ‘is’ can help identify version conflicts, clean up redundant installations, and streamline executable management with tabular and JSON output formats.
The new “is battery” and “is known battery” subcommands can detect battery attributes with a clean, readable syntax. This post walks through practical examples of replacing complex shell commands with these new subcommands, demonstrating how they simplify a SketchyBar configuration on macOS. Learn how to check battery charge levels, charging state, and even conditionally load menu bar items based on whether your device has a battery.
I wanted a tool for debouncing shell commands, to ensure that tasks like installing nightly builds or running scripts only execute once within a set time period. This is the story of how I finally ended up with a solution that I’m happy with.
Let’s explore how to create a one-liner for fuzzy matching when navigating git worktrees. The ideas demonstrated here can be used to solve many more types problems beyond worktrees and even git.
I love writing bash scripts, but there are some aspects of it which I find to be a bit tedious. I’ve written “is” to try to make shell programming a little more enjoyable. Let’s look at how to get started with it.