Add function to usage
This commit is contained in:
@@ -6,3 +6,7 @@ echo "this is ${MAGENTA}magenta ${BLINK}blink${NC} text${NC}"
|
|||||||
|
|
||||||
# or you can use the functions
|
# or you can use the functions
|
||||||
echo $(gray "[INFO] " && green "This is gree test")
|
echo $(gray "[INFO] " && green "This is gree test")
|
||||||
|
|
||||||
|
# there can be a function that uses the colors
|
||||||
|
function info() { echo $(gray "[INFO] " && yellow "$@"); }
|
||||||
|
info "This is a info test"
|
||||||
|
|||||||
Reference in New Issue
Block a user