1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/etc/bash/bashrc.d/ahrc-pc.bashrc

11 lines
304 B
Text
Raw Normal View History

# PS1
if [ "$(id -u)" -eq 0 ]; then
ps1_color_1=1
ps1_color_2=10
else
ps1_color_1=5
ps1_color_2=4
fi
export PS1="[\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\]]\\$ \[$(tput sgr0)\]"