another fix
This commit is contained in:
parent
b022839b40
commit
d196be84fa
1 changed files with 2 additions and 2 deletions
|
|
@ -17,9 +17,9 @@ theme_precmd () {
|
|||
setopt prompt_subst
|
||||
if [ "$USER" = 'root' ]
|
||||
then
|
||||
PROMPT='%B%F{red}%m%k%B%F{green}${vcs_info_msg_0_} %B%F{blue}%c% #%{$reset_color%} '
|
||||
PROMPT='%B%F{red}%m%k%B%F{green}${vcs_info_msg_0_} %B%F{blue}%c #%{$reset_color%} '
|
||||
else
|
||||
PROMPT='%B%F{green}%n@%m%k${vcs_info_msg_0_} %B%F{blue}%c% #%{$reset_color%} '
|
||||
PROMPT='%B%F{green}%n@%m%k${vcs_info_msg_0_} %B%F{blue}%c #%{$reset_color%} '
|
||||
fi
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook precmd theme_precmd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue