LIVE IN YOUR TERMINAL
Completion, right at your cursor.
Stay in your terminal without memorizing every subcommand. Insert a candidate and keep typing to explore the next level.
Recorded in a real terminalrfig / zsh

↗ Type g, gi, and git to follow the completion context into checkout, then choose a live branch. The same recording shows dynamic Brew and npm candidates, arrow-key navigation, insertion, execution, and dismissal.
A FEW DETAILS
A few things before you start.
Do I still need zsh-autosuggestions?
No. rfig includes history-based autosuggestions that replace its history suggestion functionality. Remove the old plugin from .zshrc or your plugin manager, then open a new session. Fish integration also disables native autosuggestions in favor of rfig’s directory-scoped history.
Is rfig a Fig alternative?
rfig is an independent, open-source terminal autocomplete project inspired by Fig. It is not affiliated with Fig and does not claim compatibility with every Fig feature or specification.
Does rfig complete every command?
No. Candidate coverage depends on completion definitions, scripts, generators, and cached help available on your system. Some commands may have no candidates or only basic help-derived candidates.
Does rfig use AI?
No. Completion, history suggestions, and usage ranking run locally; no AI service or cloud account is required.
Does rfig import old history or scan my whole computer?
Old shell history without directory information is not imported automatically. Scanning covers your current PATH and common completion directories, not the whole disk. History, selection records, and caches live in ~/.config/rfig/.
Does Enter accept the selected history suggestion?
No. Enter executes only your actual input. Use Right at the end of the line to insert the selected history or completion row, then press Enter to execute. Ctrl+E only moves to the end of the line.
Does help analysis support nested commands?
Yes. rfig analyze walks declared subcommands breadth first with --help / -h until leaf commands, with no fixed depth limit. zsh, Bash, and Fish read the same per-path cache. Probes run sequentially in the sandbox with existing limits; repeated parent help stops a branch, and failed probes preserve previous cache data and report the failure. Typing does not trigger new help scans. Dynamic resource names still require a completion provider. Filesystem fallback at known command groups and empty native results can use the help cache; native dynamic leaf arguments stay available.
Why do some commands have no candidates?
A command may have no usable definition, or background analysis may be pending, skipped, or unsuccessful. Check ~/.config/rfig/enrich.status: done means processing ended, not that every command succeeded. Refresh one with rfig analyze <command>. If Landlock is unavailable or restricted on Linux, probing is refused rather than run without isolation.
How do Homebrew upgrades update shell integration?
Run setup once per shell using the updated Homebrew version. It links zsh, Bash, and Fish integration to the package’s stable opt path. After brew upgrade rfig, open a new shell session; setup does not need to run again. Older copied scripts need this one-time migration. Keep one installation method: an old ~/.local/bin/rfig can shadow Homebrew. Back up and remove that duplicate, leaving history and usage data intact.
How do I enable another shell?
Run rfig setup --shell zsh, rfig setup --shell bash, or rfig setup --shell fish, then open a new session of that shell. Setup does not change your default shell, and candidates may differ between shells.