blob: 08b5b7ea03c50bb25a0df1d767846f4b35167dfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
if [[ $(id --user --name) = "notroot" && $(hostname 2>/dev/null) = "gentoo-pc" ]]; then
export PROMPT="%F{green}%B%n@%M%b%f %F{blue}%~ %B%#%b%f "
elif [[ $(id --user --name) = "root" ]]; then
export PROMPT="%F{red}%B%n@%M%b%f %F{blue}%~ %B%#%b%f "
else
export PROMPT="%F{light_white}%B%n@%M%b%f %F{blue}%~ %B%#%b%f "
fi
PROMPT="(%L) ${PROMPT}"
if [[ -n ${BWRAP} ]]; then
export PROMPT="(bwrap sandbox) ${PROMPT}"
fi
|