Oh geez... I've only been using: alias ocaml='rlwrap ocaml'. I didn't RTFM on rlwrap.
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