Oh geez... I've only been using: alias ocaml='rlwrap ocaml'. I didn't RTFM on rlwrap.

A colored prompt helps, and multi-line edit! Thanks! I'll leave -rectypes as a default for crazy people though. ;)


On Wed, Jul 4, 2012 at 12:24 PM, <rixed@happyleptic.org> wrote:
Interresting, although rlwrap gives you history, filename completion,
prompt coloring, syntax completion, brackets matching, use of an
external editor and easy configuration via .inputrc.

For instance I have this in my .zshrc:

alias ocaml='rlwrap --prompt-colour=green --multi-line --remember --complete-filenames --command-name=ocaml ocaml -rectypes'

And this in my .inputrc:

$if ocaml
    "\C-o": "()\C-b"
    "\C-n": ";;\n"
$endif

While the default C-^ launches vi (for multi-line edits)

I'm confident others have much more gorgeous inputrcs, though. Please share :-)


--
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs