aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-29 21:58:54 +0800
committerAaron LI <aly@aaronly.me>2018-11-29 21:58:54 +0800
commit9cdc292bc321ae465c40411dff21801b5614e497 (patch)
treee318c67d09741d4f32ae6cb59b17415a20450b82
parent5df9778650b69b1c38dca03142eb2eda6c780ffc (diff)
downloaddotfiles-9cdc292bc321ae465c40411dff21801b5614e497.tar.bz2
zsh: Make the prompt standout
-rw-r--r--_zsh/30-prompt.zsh3
1 files changed, 1 insertions, 2 deletions
diff --git a/_zsh/30-prompt.zsh b/_zsh/30-prompt.zsh
index a4b5323..8f6336e 100644
--- a/_zsh/30-prompt.zsh
+++ b/_zsh/30-prompt.zsh
@@ -37,14 +37,13 @@ function gitpwd() {
function myprompt() {
setopt PROMPT_SUBST
nbsp=$'\u00A0'
- PROMPT='%B%F{green}%m%(?.. %F{red}%??)%(1j. %F{yellow}%j&.)%b%f $(gitpwd)%B%(!.%F{red}.%F{green})%#${SSH_CONNECTION:+%#}$nbsp%b%f'
+ PROMPT='%S%B%F{green}%m%(?.. %F{red}%??)%(1j. %F{yellow}%j&.)%b%f $(gitpwd)%B%(!.%F{red}.%F{green})%#${SSH_CONNECTION:+%#}%s$nbsp%b%f'
RPROMPT=''
# Prompt for spelling correction
SPROMPT='zsh: correct %B%F{red}%R%b%f to %B%F{green}%r%b%f [(y)es (n)o (a)bort (e)dit]? '
}
-# Set prompts
myprompt