From f7dc004d529198737c7aef6111200924680024bd Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Sat, 13 Jun 2020 00:20:46 +0200 Subject: [PATCH] [toriel] add .bashrc.local --- _local/toriel/.bashrc.local | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _local/toriel/.bashrc.local diff --git a/_local/toriel/.bashrc.local b/_local/toriel/.bashrc.local new file mode 100644 index 0000000..22802e9 --- /dev/null +++ b/_local/toriel/.bashrc.local @@ -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 +