Add indent() and color variables
This commit is contained in:
parent
1c8d2b0a67
commit
e977a55a7b
|
@ -1,12 +1,25 @@
|
||||||
|
|
||||||
RED=$bg[red]
|
# Normal Colors
|
||||||
red=$fg[red]
|
black='\e[0;30m' # Black
|
||||||
GREEN=$bg[green]
|
red='\e[0;31m' # Red
|
||||||
green=$fg[green]
|
green='\e[0;32m' # Green
|
||||||
YELLOW=$bg[yellow]
|
yellow='\e[0;33m' # Yellow
|
||||||
yellow=$fg[yellow]
|
blue='\e[0;34m' # Blue
|
||||||
BOLD=$FX[bold]
|
purple='\e[0;35m' # Purple
|
||||||
NC=$reset_color
|
cyan='\e[0;36m' # Cyan
|
||||||
|
white='\e[0;37m' # White
|
||||||
|
|
||||||
|
# Background
|
||||||
|
BLACK='\e[40m' # Black
|
||||||
|
RED='\e[41m' # Red
|
||||||
|
GREEN='\e[42m' # Green
|
||||||
|
YELLOw='\e[43m' # Yellow
|
||||||
|
BLUE='\e[44m' # Blue
|
||||||
|
PURPLE='\e[45m' # Purple
|
||||||
|
CYAN='\e[46m' # Cyan
|
||||||
|
WHITE='\e[47m' # White
|
||||||
|
|
||||||
|
NC="\e[m" # Color Reset
|
||||||
|
|
||||||
function echo-g {
|
function echo-g {
|
||||||
echo -e "$green$1$NC"
|
echo -e "$green$1$NC"
|
||||||
|
@ -15,3 +28,7 @@ function echo-g {
|
||||||
function echo-r {
|
function echo-r {
|
||||||
echo -e "$red$1$NC"
|
echo -e "$red$1$NC"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function indent {
|
||||||
|
sed "s/^/ /"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue