diff --git a/inc_bash.sh b/inc_bash.sh index e75f16e2a779ff1782cdf9e2e89307cd8e98d8f7..23e8b582f4f007164337390c79434820491d8114 100755 --- a/inc_bash.sh +++ b/inc_bash.sh @@ -1,4 +1,8 @@ - +# ====================================================================== +# +# shared bash functions +# +# ====================================================================== # ---------------------------------------------------------------------- # returncodes @@ -49,6 +53,15 @@ function fetchrc(){ fi } + # echo a colored text and reset color + # param string keyword to set a color - see function color() above + # param string text to show + function cecho(){ + color $1 + shift + echo $* + color reset + } function showPrompt(){ color input