Skip to content

Instantly share code, notes, and snippets.

@akopitsa
Forked from mavieth/colors.sh
Created December 5, 2018 12:01
Show Gist options
  • Save akopitsa/f19cbf53fb6c844a98284f3ca9554d10 to your computer and use it in GitHub Desktop.
Save akopitsa/f19cbf53fb6c844a98284f3ca9554d10 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 "I ${DARKGRAY}love${SET} github."
echo "I ${RED}love${SET} github."
echo "I ${LIGHTRED}love${SET} github."
echo "I ${GREEN}love${SET} github."
echo "I ${YELLOW}love${SET} github."
echo "I ${BLUE}love${SET} github."
echo "I ${PURPLE}love${SET} github."
echo "I ${LIGHTPURPLE}love${SET} github."
echo "I ${CYAN}love${SET} github."
echo "I ${WHITE}love${SET} github."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment