Getting rlwrap to work on Mac OS X

CJ Travis has an excellent post on this:

Installing sqlplus, rlwrap on OS X Lion 10.7

To also get the VI keybindings to work with SQL*Plus do the following:

1. create a file in your home directory called .inputrc

2. add the following lines to .inputrc:

3. save the file and source .bash_profile again:

Now you should have the VIkeybindings in SQL*Plus, too.

The link to the Moutain Lion version of ports is:


Also check out my other posts on rlwrap:

Rlwrap, the first

Rlwrap, the second

Rlwrap, the third



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.