paxtonhare / demo-magic

A handy shell script that enables you to write repeatable demos in a bash environment.
MIT License
1.67k stars 213 forks source link

Add options for demo prompt, command color and comment color #14

Closed nokome closed 5 years ago

nokome commented 5 years ago

This PR introduces three variables...

DEMO_PROMPT="$ "
DEMO_CMD_COLOR=$WHITE
DEMO_COMMENT_COLOR=$GREY

Which can be overriden for demos e.g.

# Include the demoing code
. demo-magic.sh
clear

# Set some options
DEMO_PROMPT=$BLUE"$ "
DEMO_CMD_COLOR=$GREEN

Here's a demo using those settings

paxtonhare commented 5 years ago

Thanks @nokome for the PR!