plugin/colors: revert #699
This reverts commit 2a3fde2b14 but does *not* restore the previous variables. Those are still provided by `lib/colors`.
This plugin exists for anyone who likes the metaprogramming adventure of computing colors dynamically rather than using hard-coded value. Potentially this could be used by themes, or possibly by a theme color-scheme randomizer?
pull/2019/head
parent
5f19de8d51
commit
399f0265aa
|
|
@ -1,6 +1,5 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# shellcheck disable=SC2005
|
# shellcheck disable=SC2005
|
||||||
# shellcheck disable=SC2034
|
|
||||||
|
|
||||||
function __ {
|
function __ {
|
||||||
echo "$@"
|
echo "$@"
|
||||||
|
|
@ -182,91 +181,3 @@ function color {
|
||||||
function echo_color {
|
function echo_color {
|
||||||
echo "$(__color_parse make_echo $@)"
|
echo "$(__color_parse make_echo $@)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
black="\[\e[0;30m\]"
|
|
||||||
red="\[\e[0;31m\]"
|
|
||||||
green="\[\e[0;32m\]"
|
|
||||||
yellow="\[\e[0;33m\]"
|
|
||||||
blue="\[\e[0;34m\]"
|
|
||||||
purple="\[\e[0;35m\]"
|
|
||||||
cyan="\[\e[0;36m\]"
|
|
||||||
white="\[\e[0;37m\]"
|
|
||||||
orange="\[\e[0;91m\]"
|
|
||||||
|
|
||||||
bold_black="\[\e[30;1m\]"
|
|
||||||
bold_red="\[\e[31;1m\]"
|
|
||||||
bold_green="\[\e[32;1m\]"
|
|
||||||
bold_yellow="\[\e[33;1m\]"
|
|
||||||
bold_blue="\[\e[34;1m\]"
|
|
||||||
bold_purple="\[\e[35;1m\]"
|
|
||||||
bold_cyan="\[\e[36;1m\]"
|
|
||||||
bold_white="\[\e[37;1m\]"
|
|
||||||
bold_orange="\[\e[91;1m\]"
|
|
||||||
|
|
||||||
underline_black="\[\e[30;4m\]"
|
|
||||||
underline_red="\[\e[31;4m\]"
|
|
||||||
underline_green="\[\e[32;4m\]"
|
|
||||||
underline_yellow="\[\e[33;4m\]"
|
|
||||||
underline_blue="\[\e[34;4m\]"
|
|
||||||
underline_purple="\[\e[35;4m\]"
|
|
||||||
underline_cyan="\[\e[36;4m\]"
|
|
||||||
underline_white="\[\e[37;4m\]"
|
|
||||||
underline_orange="\[\e[91;4m\]"
|
|
||||||
|
|
||||||
background_black="\[\e[40m\]"
|
|
||||||
background_red="\[\e[41m\]"
|
|
||||||
background_green="\[\e[42m\]"
|
|
||||||
background_yellow="\[\e[43m\]"
|
|
||||||
background_blue="\[\e[44m\]"
|
|
||||||
background_purple="\[\e[45m\]"
|
|
||||||
background_cyan="\[\e[46m\]"
|
|
||||||
background_white="\[\e[47;1m\]"
|
|
||||||
background_orange="\[\e[101m\]"
|
|
||||||
|
|
||||||
normal="\[\e[0m\]"
|
|
||||||
reset_color="\[\e[39m\]"
|
|
||||||
|
|
||||||
# These colors are meant to be used with `echo -e`
|
|
||||||
echo_black="\033[0;30m"
|
|
||||||
echo_red="\033[0;31m"
|
|
||||||
echo_green="\033[0;32m"
|
|
||||||
echo_yellow="\033[0;33m"
|
|
||||||
echo_blue="\033[0;34m"
|
|
||||||
echo_purple="\033[0;35m"
|
|
||||||
echo_cyan="\033[0;36m"
|
|
||||||
echo_white="\033[0;37;1m"
|
|
||||||
echo_orange="\033[0;91m"
|
|
||||||
|
|
||||||
echo_bold_black="\033[30;1m"
|
|
||||||
echo_bold_red="\033[31;1m"
|
|
||||||
echo_bold_green="\033[32;1m"
|
|
||||||
echo_bold_yellow="\033[33;1m"
|
|
||||||
echo_bold_blue="\033[34;1m"
|
|
||||||
echo_bold_purple="\033[35;1m"
|
|
||||||
echo_bold_cyan="\033[36;1m"
|
|
||||||
echo_bold_white="\033[37;1m"
|
|
||||||
echo_bold_orange="\033[91;1m"
|
|
||||||
|
|
||||||
echo_underline_black="\033[30;4m"
|
|
||||||
echo_underline_red="\033[31;4m"
|
|
||||||
echo_underline_green="\033[32;4m"
|
|
||||||
echo_underline_yellow="\033[33;4m"
|
|
||||||
echo_underline_blue="\033[34;4m"
|
|
||||||
echo_underline_purple="\033[35;4m"
|
|
||||||
echo_underline_cyan="\033[36;4m"
|
|
||||||
echo_underline_white="\033[37;4m"
|
|
||||||
echo_underline_orange="\033[91;4m"
|
|
||||||
|
|
||||||
echo_background_black="\033[40m"
|
|
||||||
echo_background_red="\033[41m"
|
|
||||||
echo_background_green="\033[42m"
|
|
||||||
echo_background_yellow="\033[43m"
|
|
||||||
echo_background_blue="\033[44m"
|
|
||||||
echo_background_purple="\033[45m"
|
|
||||||
echo_background_cyan="\033[46m"
|
|
||||||
echo_background_white="\033[47;1m"
|
|
||||||
echo_background_orange="\033[101m"
|
|
||||||
|
|
||||||
echo_normal="\033[0m"
|
|
||||||
echo_reset_color="\033[39m"
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue