From cd13891bb0dcf3e18cd5bd1fe6c5f02769f4794a Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 4 Apr 2018 19:29:55 +0900 Subject: re-formated bashrc --- bashrc | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/bashrc b/bashrc index 02e6b5f..f7d5d4c 100644 --- a/bashrc +++ b/bashrc @@ -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 +} #}}} -- cgit v1.2.3