Created
March 26, 2016 21:49
-
-
Save mjlescano/a2685c769ea47fe414c4 to your computer and use it in GitHub Desktop.
Minimal helper functions for logging on 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
#! /bin/bash | |
info () { | |
echo "$(tput setaf 6) · $@$(tput sgr0)" | |
} | |
warn () { | |
echo "$(tput setaf 3) · $@$(tput sgr0)" | |
} | |
err () { | |
echo "$(tput setaf 1) · $@$(tput sgr0)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment