piech.dev

Back to Projects github.com/Tenemo/aliases.sh

aliases.sh

Netlify Status

aliases.sh

A tiny static site that publishes my curated bash aliases and renders the real aliases.sh file with build-time syntax highlighting.

How it works

Local development

pnpm install
pnpm dev
pnpm test
pnpm bench:concat
pnpm build

Optional benchmark examples:

pnpm bench:concat
pnpm bench:concat -- --scale medium
pnpm bench:concat -- --target .

Concat benchmark

pnpm bench:concat runs the real concat function from aliases.sh. The harness launches Git Bash, sources the aliases file, runs concat ".", and measures wall-clock time around the full invocation, including snapshot generation and writing temp.txt.

By default it benchmarks against a synthetic fixture that mixes:

If you pass --target <path>, it benchmarks an existing directory instead. The benchmark restores an existing temp.txt after each run, removes generated fixtures unless told not to, and reports per-run output size, line count, included/excluded counts, output hash, plus min/median/avg/max timings.

Arguments:

On Windows, the harness needs Git Bash. Set GIT_BASH_PATH if it is installed outside the usual locations.

Notes