Skip to content

Instantly share code, notes, and snippets.

@sloppylopez
Created April 6, 2019 23:36
Show Gist options
  • Save sloppylopez/639e2b46f3ae1100165863eba80435ab to your computer and use it in GitHub Desktop.
Save sloppylopez/639e2b46f3ae1100165863eba80435ab to your computer and use it in GitHub Desktop.
color stdout
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