From 3a75ea237d5785468011d23c10a5d810c3d98457 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Tue, 30 Apr 2019 20:33:28 +0200 Subject: [PATCH] sync .bashrc with calliope; make blue un-bold --- .bashrc | 5 +++-- local/.bashrc.calliope | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 local/.bashrc.calliope diff --git a/.bashrc b/.bashrc index 3a83749..6bc5f44 100644 --- a/.bashrc +++ b/.bashrc @@ -115,8 +115,9 @@ lscat() { # Define colors for bash prompt (will also be used in .bashrc.local) TRED='\[\e[0;31m\]' # Red TGREEN='\[\e[0;32m\]' # Green + TBLUE='\[\e[0;34m\]' # Blue +TGREENB='\[\e[1;32m\]' # Green bold TCYANB='\[\e[1;36m\]' # Cyan bold - TBLUE='\[\e[1;34m\]' # Blue TWHITEB='\[\e[1;37m\]' # White bold TRESET='\[\e[0m\]' # Text Reset @@ -131,5 +132,5 @@ fi [[ -f ~/.bashrc.local ]] && source ~/.bashrc.local # Clean up environment variables -unset TRED TGREEN TCYANB TBLUE TWHITEB TRESET +unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET diff --git a/local/.bashrc.calliope b/local/.bashrc.calliope new file mode 100644 index 0000000..c051679 --- /dev/null +++ b/local/.bashrc.calliope @@ -0,0 +1,21 @@ +# +# ~/.bashrc.local -- calliope version +# + +# Host-specific aliases +alias scrx='screen -x irssi' + +# Assume colors are set in global .bashrc: +# - TRED +# - TGREEN +# - TBLUE +# - TGREENB (bold) +# - TRESET + +# Set host-specific bash prompt: "user@host pwd :U " +if [[ ${EUID} == 0 ]] ; then + PS1="${TRED}\u@\h ${TBLUE}\w ${TGREENB}:U ${TRESET}" +else + PS1="${TGREEN}\u@\h ${TBLUE}\w ${TGREENB}:U ${TRESET}" +fi +