diff options
author | katherine <shmibs@airen-no-jikken.icu> | 2018-12-04 05:42:02 -0700 |
---|---|---|
committer | katherine <shmibs@airen-no-jikken.icu> | 2018-12-04 05:42:02 -0700 |
commit | a72dd63681f4cbb51a7e84f26b14f3a513afb542 (patch) | |
tree | 340f57d92d8491dd8e3c7b4902a5ab48994d360f /.zshrc | |
parent | 9f9eb66ecc74dd1535c9bba18e8783fde351a0d2 (diff) | |
download | dotfiles-a72dd63681f4cbb51a7e84f26b14f3a513afb542.tar.gz |
add a nice prompt for utop
mimics zsh
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -51,8 +51,12 @@ 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 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 " # current location, with one level of parent context PROMPT+="%{$fg[blue]%}%2c" # newline @@ -65,8 +69,10 @@ PROMPT="%{%B$fg[white]%}┌[" PROMPT+="%(0?..$fg[red]%?$fg[white]:)" # if any, number of jobs PROMPT+="%(1j.$fg[green]%j$fg[white]:.)" -# 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 " # current location, with one level of parent context PROMPT+="%{$fg[blue]%}%2c" # newline |