Zsh prompt: Make sure bright colours are used for SSH and root
This commit is contained in:
parent
975ae6087c
commit
f44adb6760
|
@ -12,8 +12,9 @@ zsh_theme_colours[highlight]="201" # pink
|
|||
zsh_theme_colours[minor]="60" # dark violet
|
||||
zsh_theme_colours[inactive]="236" # grey
|
||||
|
||||
[[ -n "${SSH_CONNECTION}" ]] && zsh_theme_colours[prompt]="yellow"
|
||||
[[ ${EUID} -eq 0 ]] && zsh_theme_colours[prompt]="red"
|
||||
# This will use potentially user defined colours
|
||||
[[ -n "${SSH_CONNECTION}" ]] && zsh_theme_colours[prompt]="11" # bright yellow
|
||||
[[ ${EUID} -eq 0 ]] && zsh_theme_colours[prompt]="9" # bright red
|
||||
|
||||
# Show username if it is not the default user
|
||||
local showuser=""
|
||||
|
|
Loading…
Reference in New Issue
Block a user