Added root detection for prompt
This commit is contained in:
parent
9bf4e2b60f
commit
d00bdb5421
3
.zshrc
3
.zshrc
@ -19,6 +19,9 @@ source "$ZSH_CONFIG/functions"
|
|||||||
zsh_add_config keybinds.zsh
|
zsh_add_config keybinds.zsh
|
||||||
|
|
||||||
PURE_PROMPT_SYMBOL="$"
|
PURE_PROMPT_SYMBOL="$"
|
||||||
|
if [ "$USER" = "root" ]; then
|
||||||
|
PURE_PROMPT_SYMBOL="#"
|
||||||
|
fi
|
||||||
PROMPT_PURE_SSH_CONNECTION=YES
|
PROMPT_PURE_SSH_CONNECTION=YES
|
||||||
zsh_add_plugin sindresorhus/pure
|
zsh_add_plugin sindresorhus/pure
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
|
Loading…
Reference in New Issue
Block a user