mirror of
https://gitlab.alpinelinux.org/alpine/alpine-baselayout.git
synced 2025-04-19 09:42:19 +03:00
10 lines
241 B
Plaintext
10 lines
241 B
Plaintext
# Setup a red prompt for root and a green one for users.
|
|
NORMAL="\[\e[0m\]"
|
|
RED="\[\e[1;31m\]"
|
|
GREEN="\[\e[1;32m\]"
|
|
if [[ "$USER" == root ]] ; then
|
|
PS1="$RED\h [$NORMAL\w$RED]# $NORMAL"
|
|
else
|
|
PS1="$GREEN\h [$NORMAL\w$GREEN]\$ $NORMAL"
|
|
fi
|