fix: separate colours from .bashrc
add: backgroud colour def
This commit is contained in:
parent
a6ab41120d
commit
9e230a4923
2 changed files with 28 additions and 13 deletions
25
.bash_colours
Normal file
25
.bash_colours
Normal file
|
@ -0,0 +1,25 @@
|
|||
red='\[\e[0;31m\]'
|
||||
RED='\[\e[1;31m\]'
|
||||
redbg='\[\e[41m\]'
|
||||
|
||||
blue='\[\e[0;34m\]'
|
||||
BLUE='\[\e[1;34m\]'
|
||||
bluebg='\[\e[44m\]'
|
||||
|
||||
cyan='\[\e[0;36m\]'
|
||||
CYAN='\[\e[1;36m\]'
|
||||
cyanbg='\[\e[46m\]'
|
||||
|
||||
green='\[\e[0;32m\]'
|
||||
GREEN='\[\e[1;32m\]'
|
||||
greenbg='\[\e[42m\]'
|
||||
|
||||
yellow='\[\e[0;33m\]'
|
||||
YELLOW='\[\e[1;33m\]'
|
||||
yellowbg='\[\e[43m\]'
|
||||
|
||||
purple='\[\e[0;35m\]'
|
||||
PURPLE='\[\e[1;35m\]'
|
||||
purplebg='\[\e[45m\]'
|
||||
|
||||
nc='\[\e[0m\]'
|
16
.bashrc
16
.bashrc
|
@ -13,19 +13,9 @@ shopt -s histappend
|
|||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
red='\[\e[0;31m\]'
|
||||
RED='\[\e[1;31m\]'
|
||||
blue='\[\e[0;34m\]'
|
||||
BLUE='\[\e[1;34m\]'
|
||||
cyan='\[\e[0;36m\]'
|
||||
CYAN='\[\e[1;36m\]'
|
||||
green='\[\e[0;32m\]'
|
||||
GREEN='\[\e[1;32m\]'
|
||||
yellow='\[\e[0;33m\]'
|
||||
YELLOW='\[\e[1;33m\]'
|
||||
PURPLE='\[\e[1;35m\]'
|
||||
purple='\[\e[0;35m\]'
|
||||
nc='\[\e[0m\]'
|
||||
if [ -f ~/.bash_colours ]; then
|
||||
source ~/.bash_colours
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
|
||||
source /usr/share/git/completion/git-prompt.sh
|
||||
|
|
Loading…
Reference in a new issue