From 091b6a13ccbe933122795028652cb52d2b8cdb3a Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 9 May 2021 00:09:48 -0700 Subject: add more colors for terminal bash and readline --- .bashrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index c9cf8a69..e3c838f7 100644 --- a/.bashrc +++ b/.bashrc @@ -5,9 +5,16 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return -alias ll='ls -lah --color=auto' -PS1='[\u@\h \W]\$ ' +# default PS1 +#PS1='[\u@\h \W]\$ ' + +# 1: bold, 91: bright red +# \e[m act like \e[0m, means reset so commands after it will not be colored +# https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit +PS1='\e[1;91m[\u@\h \W]\$ \e[0m' +alias ls='ls --color=auto' +alias ll='ls -lah --color=auto' alias cfgc='/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME' alias cfgl='/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME' -- cgit v1.2.3-70-g09d2