https://github.com/oalders/is<p>I wrote a tool to make shell scripting just a little bit easier. It has a syntax that reads just a little bit like English, so that you can ask questions of your environment. That means you can do things like:<p>Check the version of a CLI tool:<p>$ is cli version tmux gt 3.2 && echo || echo<p>Check an OS version by its code name:<p>$ is os version-codename in ventura,monterey<p>Do things only if a dependency is installed:<p>$ is there go && go install golang.org/x/tools/cmd/goimports@latest<p>Query a CLI version:<p>$ is known cli version bash<p>5.2.15<p>Check if today is Wednesday using a case insensitive regex:<p>$ is cli output stdout date like "(?i)wed"<p>Update a binary if it's older than 7 days:<p>$ is cli age goimports gt 7 days && go install golang.org/x/tools/cmd/goimports@latest<p>Check the major (or minor, or patch) version of your OS:<p>$ is os version --major eq 13<p>Install if you have passwordless sudo:<p>$ is user sudoer && sudo apt-get install ripgrep<p>Check the output of STDERR for an arbitrary command:<p>$ is cli output stderr ssh --arg="-V" like 9.0p1<p>The idea is to make some scripting tasks less tedious. I mostly wrote this because I could and because I enjoyed doing it.