mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 07:01:36 +01:00
fix: use whoami instead of $USER
This commit is contained in:
2
zshrc
2
zshrc
@@ -50,7 +50,7 @@ PATH_COLOR="cyan"
|
|||||||
PATH_INPUT_SEPERATOR_COLOR="green"
|
PATH_INPUT_SEPERATOR_COLOR="green"
|
||||||
|
|
||||||
## different color for root ##
|
## different color for root ##
|
||||||
if [[ $USER == "root" ]]; then
|
if [[ $(whoami) == "root" ]]; then
|
||||||
USER_COLOR="red"
|
USER_COLOR="red"
|
||||||
HOST_COLOR="red"
|
HOST_COLOR="red"
|
||||||
SEPERATOR_LINE_COLOR="red"
|
SEPERATOR_LINE_COLOR="red"
|
||||||
|
|||||||
Reference in New Issue
Block a user