fixing the guile repl on mac

by hedgehogai — Tue 25 November 2025

I want to play around with guile a scheme dialect from the GNU guix project on a mac.

Install

brew install guile

Only to launch the repl and get this annoying behaviour when pressing the up or down arrows when you expect to see the last command you have run...

^[[A^[[A

Fix: rlwrap

The fix for this is to wrap guile in rlwrap:

# Install rlwrap
brew install rlwrap

# Run Guile with readline support
rlwrap guile

# Or create an alias in ~/.zshrc:
echo 'alias guile="rlwrap guile"' >> ~/.zshrc
source ~/.zshrc