How to make ghci support ^p to go up?
Asked Answered
R

1

10

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.

Ruthenian answered 12/5, 2010 at 9:51 Comment(0)
R
8

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
Radcliff answered 12/5, 2010 at 16:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.