Skip to content

Instantly share code, notes, and snippets.

@Lokawn
Forked from mavieth/colors.sh
Created December 25, 2022 12:41
Show Gist options
  • Save Lokawn/8896563969b04bc92803a8e88fd723ff to your computer and use it in GitHub Desktop.
Save Lokawn/8896563969b04bc92803a8e88fd723ff to your computer and use it in GitHub Desktop.
Bash script color output
#!/bin/bash
DARKGRAY='\033[1;30m'
RED='\033[0;31m'
LIGHTRED='\033[1;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
LIGHTPURPLE='\033[1;35m'
CYAN='\033[0;36m'
WHITE='\033[1;37m'
SET='\033[0m'
echo -e "I ${DARKGRAY}love${SET} github."
echo -e "I ${RED}love${SET} github."
echo -e "I ${LIGHTRED}love${SET} github."
echo -e "I ${GREEN}love${SET} github."
echo -e "I ${YELLOW}love${SET} github."
echo -e "I ${BLUE}love${SET} github."
echo -e "I ${PURPLE}love${SET} github."
echo -e "I ${LIGHTPURPLE}love${SET} github."
echo -e "I ${CYAN}love${SET} github."
echo -e "I ${WHITE}love${SET} github."
@Lokawn
Copy link
Author

Lokawn commented Dec 25, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment