sync .bashrc with calliope; make blue un-bold

This commit is contained in:
Lexi / Zoe 2019-04-30 20:33:28 +02:00
parent 26604181f8
commit 3a75ea237d
2 changed files with 24 additions and 2 deletions

View File

@ -115,8 +115,9 @@ lscat() {
# Define colors for bash prompt (will also be used in .bashrc.local) # Define colors for bash prompt (will also be used in .bashrc.local)
TRED='\[\e[0;31m\]' # Red TRED='\[\e[0;31m\]' # Red
TGREEN='\[\e[0;32m\]' # Green TGREEN='\[\e[0;32m\]' # Green
TBLUE='\[\e[0;34m\]' # Blue
TGREENB='\[\e[1;32m\]' # Green bold
TCYANB='\[\e[1;36m\]' # Cyan bold TCYANB='\[\e[1;36m\]' # Cyan bold
TBLUE='\[\e[1;34m\]' # Blue
TWHITEB='\[\e[1;37m\]' # White bold TWHITEB='\[\e[1;37m\]' # White bold
TRESET='\[\e[0m\]' # Text Reset TRESET='\[\e[0m\]' # Text Reset
@ -131,5 +132,5 @@ fi
[[ -f ~/.bashrc.local ]] && source ~/.bashrc.local [[ -f ~/.bashrc.local ]] && source ~/.bashrc.local
# Clean up environment variables # Clean up environment variables
unset TRED TGREEN TCYANB TBLUE TWHITEB TRESET unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET

21
local/.bashrc.calliope Normal file
View File

@ -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