From 2437c91c46564099994029a0856dcc7e3b287d91 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 3 Oct 2026 08:43:42 -0300 Subject: [PATCH] shell completion installation instructions on readme. --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c8299f1..81c83d3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | sh - install with `go install`; - or run with docker using `docker build -t nak . && docker run nak event`. - or install with `brew install nak` if you use **macOS Homebrew**. -- or install with `paru -S nak-bin` or `yay -S nak-bin` if you are on **Arch Linux**. +- or install with `yay -S nak-bin` if you are on **Arch Linux**. - or install with `nix-env --install nak` if you use **Nix**. ## what can you do with it? @@ -558,3 +558,19 @@ gitnostr.com... ok. ] } ``` + +## shell completions + +If you installed using a method that doesn't do this automatically, install shell completions with one of these: + +```sh +# bash +mkdir -p ~/.local/share/bash-completion/completions && nak completion bash > ~/.local/share/bash-completion/completions/nak + +# zsh +mkdir -p ~/.zsh/completions && nak completion zsh > ~/.zsh/completions/_nak + +# fish +mkdir -p ~/.config/fish/completions && nak completion fish > ~/.config/fish/completions/nak.fish +``` +