Created
June 4, 2020 04:21
-
-
Save nuumio/1817879ed85e9ef9cdf62291625a3891 to your computer and use it in GitHub Desktop.
print_colors.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# From https://github.com/eendroroy/bin_scripts/blob/master/public/print_colors | |
# with Do What The F*ck You Want To Public License | |
echo -e "|039| \033[39mDefault \033[m |049| \033[49mDefault \033[m |037| \033[37mLight gray \033[m |047| \033[47mLight gray \033[m" | |
echo -e "|030| \033[30mBlack \033[m |040| \033[40mBlack \033[m |090| \033[90mDark gray \033[m |100| \033[100mDark gray \033[m" | |
echo -e "|031| \033[31mRed \033[m |041| \033[41mRed \033[m |091| \033[91mLight red \033[m |101| \033[101mLight red \033[m" | |
echo -e "|032| \033[32mGreen \033[m |042| \033[42mGreen \033[m |092| \033[92mLight green \033[m |102| \033[102mLight green \033[m" | |
echo -e "|033| \033[33mYellow \033[m |043| \033[43mYellow \033[m |093| \033[93mLight yellow \033[m |103| \033[103mLight yellow \033[m" | |
echo -e "|034| \033[34mBlue \033[m |044| \033[44mBlue \033[m |094| \033[94mLight blue \033[m |104| \033[104mLight blue \033[m" | |
echo -e "|035| \033[35mMagenta \033[m |045| \033[45mMagenta \033[m |095| \033[95mLight magenta \033[m |105| \033[105mLight magenta \033[m" | |
echo -e "|036| \033[36mCyan \033[m |046| \033[46mCyan \033[m |096| \033[96mLight cyan \033[m |106| \033[106mLight cyan \033[m" | |
# Added print (with little own mods) | |
# from https://github.com/alacritty/alacritty/pull/3423#issuecomment-604703230 | |
echo -e "\e[1m\e[99mdef\e[0m\e[90mfoo\e[91mbar\e[92mbaz\e[93mbat\e[94mbax\e[95mbal\e[96mbag\e[97mban" | |
echo -e "\e[39mdef\e[30mfoo\e[31mbar\e[32mbaz\e[33mbat\e[34mbax\e[35mbal\e[36mbag\e[37mban" | |
echo -e "\e[2m\e[39mdef\e[30mfoo\e[31mbar\e[32mbaz\e[33mbat\e[34mbax\e[35mbal\e[36mbag\e[37mban" | |
echo -e "\e[0m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment