Install the latest nf from the GitHub flake into your Nix profile:
nix profile add github:nonfiction/nf
Run from a checkout during development:
nix run .#nf -- --help
nix develop -c nf --help
go run ./cmd/nf --help
Build and test:
nix build .#nf -L
go test ./...
Nix flakes build from the git source snapshot. Stage newly added source files before trusting nix run or nix build.
nf can print completion scripts for bash and zsh:
nf completion bash
nf completion zsh
Temporary setup for the current shell:
# bash
source <(nf completion bash)
# zsh
source <(nf completion zsh)
Persistent setup depends on your shell config. Save the generated script into a file loaded by your shell, such as a bash completion directory or a zsh $fpath completion file.
nf uses date-based versions in YYYY.MM.DD.N form. N increments for multiple releases on the same UTC date. The current source version lives in internal/version/VERSION.
Check the installed binary:
nf version
nf version --short
Build release artifacts for the version in internal/version/VERSION:
scripts/release.sh
Build artifacts for an explicit version:
scripts/release.sh 2026.06.09.2
The release script writes binaries and checksums under dist/, stamping the version, git commit, and release date into the binary with Go linker flags. The release date is derived from the YYYY.MM.DD prefix.