aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@airen-no-jikken.icu>2018-12-04 05:56:33 -0700
committerkatherine <shmibs@airen-no-jikken.icu>2018-12-04 05:56:33 -0700
commit8a1a6e410499cbc5c0685287847b290be7ccbba8 (patch)
treeaa5ac8789853716e41ac08698a90b8fbc8adafa2
parent18272b9d26c28a3441d7734b4d160ebb87eb166d (diff)
downloaddotfiles-8a1a6e410499cbc5c0685287847b290be7ccbba8.tar.gz
prompt tweak
a single colour is better after all, rather than separating with yellow
-rw-r--r--.ocamlinit4
-rw-r--r--.zshrc14
2 files changed, 5 insertions, 13 deletions
diff --git a/.ocamlinit b/.ocamlinit
index 67acc2b..a125263 100644
--- a/.ocamlinit
+++ b/.ocamlinit
@@ -19,9 +19,7 @@ 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" version);
- B_fg (LTerm_style.lyellow); S "@";
- B_fg (LTerm_style.lmagenta); S (Printf.sprintf "%s " host);
+ B_fg (LTerm_style.lmagenta); 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);;
diff --git a/.zshrc b/.zshrc
index 24985ff..1f6971c 100644
--- a/.zshrc
+++ b/.zshrc
@@ -51,12 +51,8 @@ PROMPT="%{$fg[black]%}ā”Œ["
PROMPT+="%(0?..$fg[red]%?$fg[black]:)"
# if any, number of jobs
PROMPT+="%(1j.$fg[green]%j$fg[black]:.)"
-# # name and host (red for root)
-# PROMPT+="%{%(!.$fg[red].$fg[magenta])%}%n@%M%E "
-# name (red for root)
-PROMPT+="%{%(!.$fg[red].$fg[magenta])%}%n"
-# host
-PROMPT+="%{$fg[yellow]%}@%{$fg[magenta]%}%M%E "
+# name and host (red for root)
+PROMPT+="%{%(!.$fg[red].$fg[magenta])%}%n@%M%E "
# current location, with one level of parent context
PROMPT+="%{$fg[blue]%}%2c"
# newline
@@ -69,10 +65,8 @@ PROMPT="%{%B$fg[white]%}ā”Œ["
PROMPT+="%(0?..$fg[red]%?$fg[white]:)"
# if any, number of jobs
PROMPT+="%(1j.$fg[green]%j$fg[white]:.)"
-# name (red for root)
-PROMPT+="%{%(!.$fg[red].$fg[magenta])%}%n"
-# host
-PROMPT+="%{$fg[yellow]%}@%{$fg[magenta]%}%M%E "
+# name and host (red for root)
+PROMPT+="%{%(!.$fg[red].$fg[magenta])%}%n@%M%E "
# current location, with one level of parent context
PROMPT+="%{$fg[blue]%}%2c"
# newline