From 63a03aac61fa3ab6e4757fe126094b234e9c743f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 09:44:55 +0300 Subject: fix(fish): prevent file completions and glob expansion in gt.fish - Add -f (--no-files) flag to all complete entries to block file/path completions for the gt command - Escape ** and * arguments to prevent fish from glob-expanding them into recursive file matches - Add Shell Completions section and completions row to README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 565f396..cffb09d 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,20 @@ gt '100Mbps 1hr *' # rate × time → 3.6e+11 bits gt # interactive REPL ``` +## Shell Completions + +Fish completions are available in [`completions/`](completions/). To install: + +```bash +cp completions/gt.fish ~/.config/fish/completions/ +``` + +Or system-wide: + +```bash +sudo cp completions/gt.fish /usr/local/share/fish/vendor_completions.d/ +``` + ## Feature Guide All features are documented in [`docs/`](docs/): @@ -51,6 +65,7 @@ All features are documented in [`docs/`](docs/): | Custom metrics | [custom-metrics](docs/custom-metrics.md) | | REPL mode | [repl-mode](docs/repl-mode.md) | | Rational number mode | [rational-mode](docs/rational-mode.md) | +| Fish shell completions | [completions](completions/) ## Building and Testing -- cgit v1.2.3