From d00bdb5421383f43ed47ab9c7ed48b9c06343e60 Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Sun, 31 Jul 2022 22:59:10 -0500 Subject: [PATCH] Added root detection for prompt --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index 2df33cb..c870281 100644 --- a/.zshrc +++ b/.zshrc @@ -19,6 +19,9 @@ source "$ZSH_CONFIG/functions" zsh_add_config keybinds.zsh PURE_PROMPT_SYMBOL="$" +if [ "$USER" = "root" ]; then + PURE_PROMPT_SYMBOL="#" +fi PROMPT_PURE_SSH_CONNECTION=YES zsh_add_plugin sindresorhus/pure autoload -U promptinit; promptinit