1
0

highlight user and host in prompt when required

This commit is contained in:
Konstantin Demin 2021-04-08 00:11:18 +03:00
parent 5394f208b6
commit 83a61a4c2f
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

View File

@ -14,8 +14,8 @@ ZSHU_PM[cmd_user]='%K{white}$'
ZSHU_PM[cmd_root]='%K{red}#' ZSHU_PM[cmd_root]='%K{red}#'
ZSHU_PS[cmd]="%F{black}%(!.${ZSHU_PM[cmd_root]}.${ZSHU_PM[cmd_user]})${ZSHU_PM[rst]} " ZSHU_PS[cmd]="%F{black}%(!.${ZSHU_PM[cmd_root]}.${ZSHU_PM[cmd_user]})${ZSHU_PM[rst]} "
ZSHU_PM[user]='%(!.%F{red}.%F{green})%n%f' ZSHU_PM[user]='%(!.%F{magenta}.%F{green})%n%f'
ZSHU_PM[host]="%B%F{blue}${ZSHU[host]}%f%b" ZSHU_PM[host]="%B%(!.%F{red}.%F{blue})${ZSHU[host]}%f%b"
if autoload -Uz add-zsh-hook ; then if autoload -Uz add-zsh-hook ; then