Getting rlwrap to work on Mac OS X

December 20, 2012 at 3:23 pm | Posted in Oracle Developement | Leave a comment

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:

   set editing-mode vi
   set keymap vi

3. save the file and source .bash_profile again:

   source .bash_profile

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

The link to the Moutain Lion version of ports is:

https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.8-MountainLion.pkg

 

Also check out my other posts on rlwrap:

Rlwrap, the first

Rlwrap, the second

Rlwrap, the third

 

 

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: