diff options
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -129,24 +129,25 @@ function pline() { local msg=$3 echo -e "$col[$tag]: $msg${BCol_NoColor}" } - function pinfo() { - local msg=$1 - local tag=${2:-INFO} - pline ${BCol_BrightGreen} $tag ${msg} - } - - function pwarn () { - local msg=$1 - local tag=${2:-WARN} - pline ${BCol_YellowOrange} $tag ${msg} - } - - function perr() { - local msg=$1 - local exit=${2:-exit} - local tag=${3:-ERR} - pline ${BCol_BrightRed} $tag ${msg} - [[ "$exit" == "exit" ]] && exit 1 || return 0 - } + +function pinfo() { + local msg=$1 + local tag=${2:-INFO} + pline ${BCol_BrightGreen} $tag ${msg} +} + +function pwarn () { + local msg=$1 + local tag=${2:-WARN} + pline ${BCol_YellowOrange} $tag ${msg} +} + +function perr() { + local msg=$1 + local exit=${2:-exit} + local tag=${3:-ERR} + pline ${BCol_BrightRed} $tag ${msg} + [[ "$exit" == "exit" ]] && exit 1 || return 0 +} #}}} |