[toriel] add .bashrc.local

This commit is contained in:
Lexi / Zoe 2020-06-13 00:20:46 +02:00
parent 59c1e82c7c
commit f7dc004d52
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#
# ~/.bashrc.local -- toriel version
#
#alias restic-source-env="source /etc/restic/restic.env"
# Assume colors are set in global .bashrc:
# - TRED
# - TGREEN
# - TBLUE
# - TGREENB
# - TCYANB
# - TWHITEB (bold)
# - TRESET
# Set prompt: highlight hostname in red to signalize "you're on a server, be careful"
if [[ ${EUID} == 0 ]] ; then
PS1="${TRED}\u@\h ${TBLUE}\w ${TWHITEB}\$ ${TRESET}"
else
PS1="${TGREEN}\u@${TRED}\h ${TBLUE}\w ${TWHITEB}\$ ${TRESET}"
fi