Created
April 6, 2019 23:36
-
-
Save sloppylopez/639e2b46f3ae1100165863eba80435ab to your computer and use it in GitHub Desktop.
color stdout
This file contains 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
function colorStuff | |
while read -l input | |
switch $input | |
case "*error*" | |
set_color red | |
echo $input | |
case "*warning*" | |
set_color yellow | |
echo $input | |
case "*" | |
set_color green | |
echo $input | |
end | |
end | |
set_color blue | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment