First, you need to export the right environment variables by doing:
eval `opam config env`
To be more effective, you should put that line in your ~/.profile
(or ~/.bashrc
).
Then, if you are using the system compiler, you can add these lines to your ~/.ocamlinit
:
let () =
try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
with Not_found -> ()
We are working on improving this process before releasing 1.0.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…