sync .bashrc with calliope; make blue un-bold
This commit is contained in:
parent
26604181f8
commit
3a75ea237d
5
.bashrc
5
.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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
Loading…
Reference in New Issue