A Bash plugin that replaces readline with a modern line editor, written in Rust and loaded into Bash as a builtin.
- Autosuggestions from history and tab completion, with fuzzy search
- Syntax highlighting, tooltips, auto-closing brackets and quotes
- Mouse support: click to move the cursor, select text and suggestions, hover for tooltips
- Rich prompts: right prompt, transient prompts, async widgets, animations
- Better tab completion, plus completions synthesized from
--helpwith flycomp - Agent mode: describe a command in plain English, or fix the last failed one
- No plugin manager, no startup scripts: one builtin in the Bash process
flyline continues HalFrgrd/flyline.
source <(curl -sSfL https://github.com/aislopware/flyline/releases/latest/download/install.sh)This downloads the library and adds it to your .bashrc, no sudo needed. On macOS (which needs Homebrew Bash) you can also install with Homebrew:
brew install bash aislopware/tap/flyline
echo 'enable -f "$(brew --prefix)/lib/bash/flyline" flyline' >> ~/.bashrcNix, manual downloads and building from source: see the guide.
| Platform | Requirement |
|---|---|
| Linux x86_64 / aarch64 | glibc 2.34+ (RHEL 9, Ubuntu 22.04, Debian 13 and newer) or musl |
| macOS | Apple silicon, macOS 11+, Homebrew Bash |
| Android | aarch64, Termux |
flyline needs Bash 4.4 or newer and is tested on 5.1, 5.2 and 5.3. Other platforms can build from source.
flyline run-tutorial # interactive tour of keys and mouse
flyline <Tab> # browse every setting with tab completion
flyline mouse --mode disabled # if you don't want mouse capture
flyline upgrade # update to the latest release
enable -d flyline # turn it off for this shellSettings are plain commands, so put the ones you like in .bashrc. A few examples:
RPS1='\t' # right prompt with the time
flyline key bind Ctrl+b 'always=runBashCommand(my_fn)'
flyline set-agent-mode --help # set up agent mode (see examples/agent_mode.sh)The guide covers prompts and widgets, keybindings, history, completion, agent mode and terminal-specific notes. See also the examples.
flyline uses modern terminal features, so a full-featured terminal such as Ghostty or Kitty works best. In Ghostty, set cursor-click-to-move = false. See the terminal notes for Kitty, VS Code, macOS and GNU Screen.
The source code is MIT. The Bash lexer in src/grammar/lexer.rs derives from flash (GPL-3.0). Because the plugin links against GNU Bash, compiled binaries and combined works are covered by the GPLv3.
