60 lines
1 KiB
Bash
Executable file
60 lines
1 KiB
Bash
Executable file
#!/bin/sh -e
|
|
|
|
# use this function to wait for ENTER
|
|
# and then clear the screen for new slide
|
|
waitandclear() {
|
|
printf "\n"
|
|
read -r blank
|
|
clear
|
|
echo
|
|
}
|
|
clear
|
|
echo
|
|
|
|
# put your slides below this
|
|
|
|
echo " hello my name is maren"
|
|
|
|
waitandclear
|
|
|
|
echo " one time at work, i presented at demo hour"
|
|
echo " and instead of slides i used a shell script"
|
|
|
|
waitandclear
|
|
|
|
echo " people seemed to really like it"
|
|
echo " so here's an example of how to do it"
|
|
|
|
waitandclear
|
|
|
|
echo " one thing that's nice about a presentation.sh"
|
|
echo " is that you can interactively present code things"
|
|
echo " in the same program that your slides are in"
|
|
echo
|
|
echo " like this:"
|
|
|
|
waitandclear
|
|
|
|
# do commands in your presentation while showing
|
|
# the audience the commands you're running with
|
|
# these snippets
|
|
#
|
|
# start showing commands:
|
|
# set -x
|
|
#
|
|
# stop showing commands without printing the
|
|
# stop command itself:
|
|
# { set +x; } 2>/dev/null
|
|
|
|
set -x
|
|
ls -la
|
|
{ set +x; } 2>/dev/null
|
|
|
|
waitandclear
|
|
|
|
echo " that's all i have to say about it!"
|
|
echo " have a nice day <3"
|
|
|
|
waitandclear
|
|
|
|
exit
|