Skip to content
Snippets Groups Projects
Commit 1f3f8350 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add function cecho

parent 6fde8187
No related branches found
No related tags found
1 merge request!43Update localdump to classlike functions
# ======================================================================
#
# shared bash functions
#
# ======================================================================
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# returncodes # returncodes
...@@ -49,6 +53,15 @@ function fetchrc(){ ...@@ -49,6 +53,15 @@ function fetchrc(){
fi 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(){ function showPrompt(){
color input color input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment