From 19540e709ae604e10ea979e33ed4afd6f914acae Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Wed, 27 Jan 2021 19:11:51 +0100 Subject: [PATCH] Fix root prompt. --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 202c95e..24d1274 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -76,7 +76,7 @@ if [[ -n "$SSH_CLIENT" ]]; then else PROMPT='%{$fg_bold[default]%}$(virtualenv_info)$(kube_ps1)%{$reset_color%}${vcs_info_msg_0_}${newline}%{$fg_bold[cyan]%}%~ %F{%(?.green.red)}❯%{$reset_color%} ' fi -[[ `id -u` -eq 0 ]] && PROMPT='%{$fg_bold[default]%}$(virtualenv_info)%{$reset_color%}${vcs_info_msg_0_}${newline}%{$fg_bold[red]%n@%m %{$fg_bold[cyan]%}%~ %F{%(?.green.red)}❯%{$reset_color%} ' +[[ $UID -eq 0 ]] && PROMPT='%{$fg_bold[default]%}$(virtualenv_info)$(kube_ps1)%{$reset_color%}${vcs_info_msg_0_}${newline}%{$fg_bold[red]%}%n@%m%{$reset_color%} %{$fg_bold[cyan]%}%~ %F{%(?.green.red)}❯%{$reset_color%} ' # local addons [ -e $XDG_CONFIG_HOME/local/zsh ] && source $XDG_CONFIG_HOME/local/zsh