Switching prompt color depending on elevated rights
This commit is contained in:
parent
0ee312ad1e
commit
48d0662d46
1 changed files with 1 additions and 2 deletions
|
@ -22,5 +22,4 @@ zstyle ':vcs_info:*' formats ':%b%c%u%f'
|
||||||
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
||||||
precmd () { vcs_info }
|
precmd () { vcs_info }
|
||||||
|
|
||||||
PROMPT='[%{$fg[blue]%}%n@%m%{$reset_color%} %~%{$fg[green]%}${vcs_info_msg_0_}%{$reset_color%}] %{$reset_color%}'
|
PROMPT='[%(!.%{$fg[red]%}%n@%m%{$reset_color%}.%{$fg[blue]%}%n@%m%{$reset_color%}) %~%{$fg[green]%}${vcs_info_msg_0_}%{$reset_color%}] %{$reset_color%}'
|
||||||
# RPROMPT='%{$fg[blue]%}%n@%m%{$reset_color%}'
|
|
||||||
|
|
Loading…
Reference in a new issue