Created
January 25, 2014 04:13
-
-
Save stephen-mw/8611784 to your computer and use it in GitHub Desktop.
Easy bash colors
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
color() { | |
echo -e "\033[0;$1m$2\033[0m" | |
} | |
echo_red() { | |
color 31 "$1" | |
} | |
echo_green() { | |
color 32 "$1" | |
} | |
echo_yellow() { | |
color 33 "$1" | |
} | |
echo_blue() { | |
color 34 "$1" | |
} | |
echo_purple() { | |
color 35 "$1" | |
} | |
echo_cyan() { | |
color 36 "$1" | |
} | |
echo_white() { | |
color 37 "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment