Skip to main content

Bash

On a Prettier PATH
·877 words·5 mins
bash CI GitHub is
On getting a more readable $PATH, installing “is” in GitHub Actions and using $GITHUB_STEP_SUMMARY to put it all together.
How Many Versions of "X" Are in my $PATH?
·506 words·3 mins
is bash cli
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.
Battery Power-Ups: Enhancing SketchyBar with "is"
·1042 words·5 mins
is battery bash dotfiles cli Go macos sketchybar
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.
Debounce All of the Things
·2073 words·10 mins
Go bash dotfiles
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.
One Line Fuzzy Find for Git Worktree
·693 words·4 mins
fzf git awk bash
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.
is: an inspector for your environment
·1273 words·6 mins
Go bash dotfiles is
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.
Autocorrecting my Git Commands
·598 words·3 mins
git bash autocorrect
I’m going to show you a couple of handy tricks that I use to help Git “Do What I mean”.