just, xh, hyperfine and other helpers
just, xh, hyperfine, tlrc, uv, wget, Bash 5 and ShellCheck: small command-line tools for everyday work.
Small tools that each replace a longer command or a lookup: run a project’s recipes, call an HTTP API, time two commands against each other, see how a command is used, run a Python script with its packages, download a file, and check a shell script.
On the workstation
-
Installed by the
just,xh,hyperfine,tlrc,uv,wget,bashandshellcheckformulae. -
tlrc installs the command
tldr. -
bashis Bash 5. macOS ships Bash 3.2, so a script that needs associative arrays ormapfilestarts with#!/usr/bin/env bashand finds Homebrew’s. -
uv runs Python scripts and tools without a virtualenv made by hand; mise keeps the Python versions.
Keys and commands
| Key or command | Does |
|---|---|
|
Run the default recipe of the |
|
Pick a recipe with fzf |
|
GET from localhost, with the response coloured |
|
POST JSON: |
|
Print only the response body |
|
Time two commands and say which is faster |
|
Save the result as a Markdown table |
|
Short examples for a command / update the pages |
|
Run a script with a package, no virtualenv to set up |
|
Run a Python tool once without installing it |
|
Install a Python tool on |
|
Resume a download that stopped |
|
Lint a script, following the files it sources |
With zc-workstation
Before committing a change to a shell script, such as bootstrap.sh or the
files in scripts/, lint it:
$ shellcheck -x bootstrap.sh scripts/*.sh
To check that a change made plan faster, time both builds:
$ hyperfine --warmup 2 'old/zc-workstation plan' 'bin/zc-workstation plan'
Edit this page Last updated