Skip to content

Instantly share code, notes, and snippets.

@aziis98
Created September 14, 2020 14:53
Show Gist options
  • Select an option

  • Save aziis98/93572f4fc7d44602f5ec1e47b8b107d4 to your computer and use it in GitHub Desktop.

Select an option

Save aziis98/93572f4fc7d44602f5ec1e47b8b107d4 to your computer and use it in GitHub Desktop.
Basic coloring for bash
# Colors
end="\033[0m"
black="\033[0;30m"
blackb="\033[1;30m"
white="\033[0;37m"
whiteb="\033[1;37m"
red="\033[0;31m"
redb="\033[1;31m"
green="\033[0;32m"
greenb="\033[1;32m"
yellow="\033[0;33m"
yellowb="\033[1;33m"
blue="\033[0;34m"
blueb="\033[1;34m"
purple="\033[0;35m"
purpleb="\033[1;35m"
lightblue="\033[0;36m"
lightblueb="\033[1;36m"
echo -e "${blue}Example${end}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment