ocaml-community / utop

Universal toplevel for OCaml
Other
846 stars 113 forks source link

utop reads .ocamlinit in current directory in preference to .config/utop/init.ml #325

Open nilsbecker opened 4 years ago

nilsbecker commented 4 years ago

this is the behavior of the bare ocaml toplevel. is this intended also for utop?

i noticed this when starting utop from my home directory, which contains a .ocamlinit. starting utop from any other directory reads the file i expected: .config/utop/init.ml. it is possible to move the ocaml toplevel init file to .config/ocaml/init.ml to work around this unexpected behavior of utop.

kandu commented 4 years ago

I think @copy is expert in this topic :)

bentxt commented 3 years ago

Thanks for that report. I finally understand why my init.ml file is ignore and I cannot the vi input mode (#edit_mode_vi) get to work