back to zsh
This commit is contained in:
parent
f7f0fdff26
commit
00f8a69791
1 changed files with 33 additions and 38 deletions
9
zshrc
9
zshrc
|
@ -65,19 +65,14 @@ new_line='
|
||||||
lb='[ '
|
lb='[ '
|
||||||
rb=' ]'
|
rb=' ]'
|
||||||
bb=':'
|
bb=':'
|
||||||
prompt_user='%(!.%F{red}%n%f.%F{blue}%n%f) '
|
prompt_user='%(1000#..%B%F{red}%n%f%b )'
|
||||||
prompt_host='%m'
|
prompt_host='%m'
|
||||||
prompt_cwd='%B%d%b'
|
prompt_cwd='%B%d%b'
|
||||||
prompt_bang='%B%(!.%F{red}>%f.>)%b '
|
prompt_bang='%B%(!.%F{red}>%f.>)%b '
|
||||||
prompt_jobs='%(1j. jobs:%B%F{red}%j%f%b.)'
|
prompt_jobs='%(1j. jobs:%B%F{red}%j%f%b.)'
|
||||||
precmd() {
|
precmd() {
|
||||||
[[ -n ${vcs_enabled} ]] && vcs_info
|
[[ -n ${vcs_enabled} ]] && vcs_info
|
||||||
if [[ -z ${hide_info} ]]; then
|
PROMPT="[ ${prompt_user}${prompt_host}${bb}${prompt_cwd}${prompt_jobs} ]${vcs_info_msg_0_}${new_line}${prompt_bang}"
|
||||||
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${prompt_jobs}${rb}${vcs_info_msg_0_}"
|
|
||||||
else
|
|
||||||
prompt_info=''
|
|
||||||
fi
|
|
||||||
PROMPT="${prompt_info}${new_line}${prompt_bang} "
|
|
||||||
}
|
}
|
||||||
PROMPT2='%b%f%_%B%F{green}>%f%b '
|
PROMPT2='%b%f%_%B%F{green}>%f%b '
|
||||||
PROMPT3='%b%f?%B%F{green}#%f%b '
|
PROMPT3='%b%f?%B%F{green}#%f%b '
|
||||||
|
|
Loading…
Reference in a new issue