summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc39
1 files 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
+}
#}}}