Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make ghci support ^p to go up?

I use Ctrl p a lot instead of up arrow to go up on Terminal. How to make ghci support Ctrl p to go up?

I use ghci from ghc98 from port. Mac OS X 10.5.8.

like image 486
Kit Avatar asked May 12 '10 09:05

Kit


1 Answers

Customize haskeline, e.g.,

$ cat ~/.haskeline 
bind: ctrl-p up

To enable all the emacs bindings, you can specify that as a user preference:

$ cat ~/.haskeline
editMode: Emacs
like image 68
Greg Bacon Avatar answered Nov 15 '22 20:11

Greg Bacon