diff options
author | katherine <shmibs@airen-no-jikken.icu> | 2018-12-06 11:54:26 -0700 |
---|---|---|
committer | katherine <shmibs@airen-no-jikken.icu> | 2018-12-06 11:54:26 -0700 |
commit | d168ec3c5e04efb5f401cfcbe60c021093cd465b (patch) | |
tree | c0f85841b00f27d8d8b6b0b72df8491188326d24 /.ocamlinit | |
parent | 8a1a6e410499cbc5c0685287847b290be7ccbba8 (diff) | |
download | dotfiles-d168ec3c5e04efb5f401cfcbe60c021093cd465b.tar.gz |
synchronise common prompts
the same across shell, iex, utop, but colour-coded and with a which
thing and version hint
Diffstat (limited to '.ocamlinit')
-rw-r--r-- | .ocamlinit | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -14,12 +14,14 @@ let path = else path in +let user = Unix.getlogin () in let version = Sys.ocaml_version in let host = Unix.gethostname () in let formatted = LTerm_text.eval [B_bold true; B_fg (LTerm_style.white); S "ā["; - B_fg (LTerm_style.lmagenta); S (Printf.sprintf "ocaml-%s@%s " version host); + B_fg (LTerm_style.lyellow); S (Printf.sprintf "%s@" user); + S (Printf.sprintf "ocaml-%s@%s " version host); B_fg (LTerm_style.lcyan); S (Printf.sprintf "%s" path); B_fg (LTerm_style.white); S "]\nā: "] in UTop.prompt := fst (React.S.create formatted);; |