mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Update gogh.sh
This commit is contained in:
parent
88f07d545d
commit
f4f280d78c
3
gogh.sh
3
gogh.sh
@ -318,7 +318,8 @@ if [[ "${COLORTERM:-}" == "truecolor" ]] || [[ "${COLORTERM:-}" == "24bit" ]]; t
|
|||||||
# This function gets called in apply-colors.sh instead of gogh_colors
|
# This function gets called in apply-colors.sh instead of gogh_colors
|
||||||
# Calls to gogh_colors has also been move to apply-colors.sh to avoid printing twice
|
# Calls to gogh_colors has also been move to apply-colors.sh to avoid printing twice
|
||||||
function gogh_truecolor () {
|
function gogh_truecolor () {
|
||||||
for c in {01..16}; do
|
# Note: {01..16} does not work on OSX
|
||||||
|
for c in $(seq -s " " -w 16); do
|
||||||
local color="COLOR_$c"
|
local color="COLOR_$c"
|
||||||
set -- $(hexRGBtoDecRGB "${!color}")
|
set -- $(hexRGBtoDecRGB "${!color}")
|
||||||
echo -ne "\033[38;2;${1};${2};${3}m█████\033[0m"
|
echo -ne "\033[38;2;${1};${2};${3}m█████\033[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user