Skip to content

Instantly share code, notes, and snippets.

@nirgeier
Last active May 11, 2024 11:44
Show Gist options
  • Save nirgeier/0fbe451bbd3001ced5fb48953734a4d6 to your computer and use it in GitHub Desktop.
Save nirgeier/0fbe451bbd3001ced5fb48953734a4d6 to your computer and use it in GitHub Desktop.
bash-colors.sh
#!/bin/bash
# Reset
COLOR_OFF='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
Cyan='\033[0;36m' # Cyan
White='\033[0;37m' # White
# Bold
BBlack='\033[1;30m' # Black
BRed='\033[1;31m' # Red
BGreen='\033[1;32m' # Green
BYellow='\033[1;33m' # Yellow
BBlue='\033[1;34m' # Blue
BPurple='\033[1;35m' # Purple
BCyan='\033[1;36m' # Cyan
BWhite='\033[1;37m' # White
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment