diff --git a/README.md b/README.md index 2c98b02..6e3f67d 100644 --- a/README.md +++ b/README.md @@ -86,12 +86,12 @@ You can customize the prompt of utop by setting the reference `UTop.prompt`. To turn off all colors and remove the line above the prompt -that lists time, etc., add this to your .ocamlinit file: +that lists time, etc., add this to ~/.config/utop/init.ml: ```OCaml -#utop_prompt_dummy;; +#utop_prompt_dummy;; ``` -To turn off the line of boxes listing possible completions that appears under -the prompt, add this to .ocamlinit: +To turn off the line of boxes listing possible completions that appears under +the prompt, add this to ~/.config/utop/init.ml: ```OCaml UTop.set_show_box false ``` diff --git a/man/utop.1 b/man/utop.1 index ffaaf82..714c189 100644 --- a/man/utop.1 +++ b/man/utop.1 @@ -58,10 +58,10 @@ utop. For that type: UTop.set_profile UTop.Light;; You can then add this line to your -.I ~/.ocamlinit +.I ~/.config/utop/init.ml file. -To turn off utop's advanced prompt features, add the following to .ocamlinit +To turn off utop's advanced prompt features, add the following to init.ml to turn off respectively (a) colors and the upper information line, and (b) the lower boxed list of possible completions: @@ -95,10 +95,14 @@ Same as .BR ocaml (1). .SH FILES -.I ~/.ocamlinit +.I ~/.config/utop/init.ml .RS The initialization file of the toplevel. .RE +.I ~/.ocamlinit +.RS +The alternative initialization file of the toplevel. +.RE .I ~/.utoprc .RS The configuration file for utop. See diff --git a/man/utoprc.5 b/man/utoprc.5 index 609258d..899051b 100644 --- a/man/utoprc.5 +++ b/man/utoprc.5 @@ -51,7 +51,7 @@ or This is the same as calling .I UTop.set_profile in -.I ~/.ocamlinit. +.I ~/.config/utop/init.ml. The following style keys are used by utop: diff --git a/src/lib/uTop.mli b/src/lib/uTop.mli index 7ed1127..1e183e3 100644 --- a/src/lib/uTop.mli +++ b/src/lib/uTop.mli @@ -157,7 +157,7 @@ val set_auto_run_async : bool -> unit val end_and_accept_current_phrase : LTerm_read_line.action (** Action that add the phrase terminator at the end of the current phrase and accepts it. For instance to avoid typing [;;], add this to your - ~/.ocamlinit: + ~/.config/utop/init.ml: {[ #require "lambda-term";; @@ -179,7 +179,7 @@ val history : LTerm_history.t [LTerm_history] module. For example if you want to limit the history to 1000 line, add - these lines to your ~/.ocamlinit file: + these lines to your ~/.config/utop/init.ml file: {[ #require "lambda-term";;