Reline extensions for completion, history search, and clipboard helpers with simple keybind configuration for IRB/pry.
English | 日本語
fzfcommand (for history search with\C-r)- macOS
pbcopy/pbpastecommands (for clipboard operations)
Install the gem globally (not in your project's Gemfile):
gem install reline_pacThen set up your ~/.irbrc:
# Download the example configuration
curl -o ~/.irbrc https://raw.githubusercontent.com/Syati/reline_pac/main/examples/.irbrcOr see examples/.irbrc for the full configuration code that you can copy and customize.
The example configuration in examples/.irbrc provides three options:
- Use default keybindings (recommended): Just use the configuration as-is
- Customize keybindings: Modify individual key bindings to your preference
- Add custom packages: Define your own methods and bind them to keys
See examples/.irbrc for detailed comments and examples.
\C-y->:pbpaste(uses macOSpbpaste)\C-k->:pbcopy_kill(uses macOSpbcopy)\C-r->:fzf_history(requiresfzfin PATH)\C-n->:completion_next\C-p->:completion_prev
- Completion: when the completion dialog is open,
\C-n/\C-pmove candidates; otherwise they move history. - Clipboard:
\C-yinsertspbpasteoutput,\C-ksends the rest of the line topbcopy. - History:
\C-rpipes history tofzf, deduplicates/strips blanks, and replaces the line with the selection.
All packages are installed when RelinePac.configure runs. Installers are idempotent, so repeated calls are safe.
bundle install
bundle exec rake specUse bin/console to experiment during development.
MIT License. See LICENSE.txt.