Skip to content

Instantly share code, notes, and snippets.

@kkroesch
Created September 9, 2019 11:57
Show Gist options
  • Save kkroesch/22ca2d0dfacfa85aa421180196e15356 to your computer and use it in GitHub Desktop.
Save kkroesch/22ca2d0dfacfa85aa421180196e15356 to your computer and use it in GitHub Desktop.
Colorize your shell script output
function header {
echo ""
echo "$(tput setaf 6)$1$(tput sgr0)"
echo ""
}
header "Creating MySQL database ..."
@kkroesch
Copy link
Author

kkroesch commented Sep 9, 2019

For an overview of available colors, see this excellent answer on Stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment