rfig is an open-source terminal autocomplete and inline history suggestion tool written in Rust. It integrates with the current shell on macOS and Linux and supports zsh, Bash 4.4+, and Fish 3.6+.

Features:

  • Input-driven multi-level completion without pressing Tab first
  • Dynamic candidates from local shell completion definitions, generators, and help output
  • Directory-aware inline history suggestions, similar to autosuggestions
  • Candidate ranking based on usage history
  • Current shell remains responsible for executing commands

Install with Homebrew:

brew install tamia6/tap/rfig
rfig setup

Project: https://github.com/tamia6/rfig Demo and docs: https://tamia6.github.io/rfig/