rlwrap

Add line editing, persistent history and prompt completion to a REPL command. More information: <https://github.com/hanslub42/rlwrap>.

Install

All systems
curl cmd.cat/rlwrap.sh
Debian Debian
apt-get install rlwrap
Ubuntu
apt-get install rlwrap
Arch Arch Linux
pacman -S rlwrap
image/svg+xml Kali Linux
apt-get install rlwrap
Fedora
dnf install rlwrap
Windows (WSL2)
sudo apt-get update sudo apt-get install rlwrap
OS X
brew install rlwrap
Raspbian
apt-get install rlwrap

Add line editing, persistent history and prompt completion to a REPL command. More information: <https://github.com/hanslub42/rlwrap>.

  • Run a REPL command with line editing, persistent history and prompt completion:
    rlwrap command
  • Use all words seen on input and output for prompt completion:
    rlwrap --remember command
  • Better prompt completion if prompts contain ANSI colour codes:
    rlwrap --ansi-colour-aware command
  • Enable filename completion (case sensitive):
    rlwrap --complete-filenames command
  • Add coloured prompts, use colour name, or an ASCI-conformant colour specification. Use an uppercase colour name for bold styling:
    rlwrap --prompt-colour=black|red|green|yellow|blue|cyan|purple|white|colour_spec command

© tl;dr; authors and contributors