ansible-role-basic-system-s.../files/skel_bashrc.sh

8 lines
347 B
Bash

export _ROOT_COLOR=33 # yellow
export _USER_COLOR=36 # cyan
if [ "`id -u`" -eq 0 ]; then
PS1="\[\033[01;${_ROOT_COLOR}m\]${debian_chroot:+($debian_chroot)}ROOT\[\033[01;34m\]@$(hostname -f) \w \@ #\[\033[00m\] "
else
PS1="\[\033[01;${_USER_COLOR}m\]${debian_chroot:+($debian_chroot)}\u\[\033[01;34m\]@$(hostname -f) \w \@ $\[\033[00m\] "
fi