aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-01 18:24:40 +0800
committerAaron LI <aly@aaronly.me>2018-12-01 18:24:40 +0800
commit6738af22672768b33fe94f4b85567b80da273a38 (patch)
tree4ad5d090918f7693929e1aff8c8a600c7432003a /_zsh
parent75456925e5ad3e7d48382e87a7b444ac4fc0fea0 (diff)
downloaddotfiles-6738af22672768b33fe94f4b85567b80da273a38.tar.bz2
zsh: Tweak prompt style a bit
Diffstat (limited to '_zsh')
-rw-r--r--_zsh/30-prompt.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/_zsh/30-prompt.zsh b/_zsh/30-prompt.zsh
index 8f6336e..cfd42f3 100644
--- a/_zsh/30-prompt.zsh
+++ b/_zsh/30-prompt.zsh
@@ -37,7 +37,7 @@ function gitpwd() {
function myprompt() {
setopt PROMPT_SUBST
nbsp=$'\u00A0'
- 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'
+ PROMPT='%S%B%F{green}[%m]%s%(?.. %F{red}%??)%(1j. %F{yellow}%j&.)%b%f $(gitpwd)%B%(!.%F{red}.%F{green})%#${SSH_CONNECTION:+%#}$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]? '