I’ve been trying out OCaml. Sometimes its quicker just to test out some code using the interpreter shell but, it doesn’t bring up the last command when I press the ‘up’ key.
Its a pain when I miss type something or wish to see what a little variation would produce.
Anyone know if there is another key for it?
Thanks,
Use
rlwrap:ocamlitself has no readline support.You can configure readline using
~/.inputrc.For example, you could add such lines to it:
Now you can use
ctrl-oandctrl-nhotkeys inocaml. Just try it.