I built rfig because I wanted IDE-style completion in the terminal without replacing the shell that actually runs my commands.
rfig is an independent, open-source terminal autocomplete project inspired by Fig. It currently supports zsh, Bash 4.4+, and Fish 3.6+ on macOS and Linux.
What it does
- Shows a completion menu as you type, with nested subcommands and dynamic arguments when the installed completion source provides them.
- Adds directory-scoped, history-based autosuggestions as inline gray text. The suggestion stays separate from the menu, and rfig can replace a separate zsh-autosuggestions-style plugin.
- Tracks candidate usage locally to rank frequently selected options.
Where suggestions come from
There is no universal static database of every CLI. rfig uses completion definitions and scripts available in the current shell, recognizes some command-provided generators and Cobra completion, and can cache help output for commands without a usable definition. After setup, it scans PATH and enriches eligible commands in the background with sandboxed help probes. Dynamic completion still depends on the installed definition, so coverage and accuracy vary by command.
Try it
brew install tamia6/tap/rfig
rfig setup
Then open a new shell and start typing. The README and animated demo cover the keys, shell setup, and current limitations.
This is a community-built Fig alternative, not affiliated with Fig. I would especially appreciate feedback on completion quality, shell integration, and what feels missing for daily terminal use.
Disclosure: I built rfig; this post was prepared with AI writing assistance.

Top comments (0)