Created
January 9, 2026 01:43
-
-
Save JezDriver/e58a6958cdac09947a005847869958fd to your computer and use it in GitHub Desktop.
Variables for outputting text with nice colours #bash
This file contains hidden or 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
| # Include this in your bash profile with: | |
| # source "/path/prompt-colours.sh" | |
| # ------- | |
| # Colours | |
| # ------- | |
| # Reset | |
| NC='\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