diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-04-04 19:29:55 +0900 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-04-04 19:29:55 +0900 |
commit | cd13891bb0dcf3e18cd5bd1fe6c5f02769f4794a (patch) | |
tree | 019f76de262077bca23092157620c52a2780e216 /bashrc | |
parent | 381f772e05102fbd12b59bcc9aea4d2c88b92f17 (diff) | |
download | dotfiles-cd13891bb0dcf3e18cd5bd1fe6c5f02769f4794a.tar.gz dotfiles-cd13891bb0dcf3e18cd5bd1fe6c5f02769f4794a.zip |
re-formated bashrc
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 +} #}}} |