From 67ca8b0295ec5dcc98169fa76ca283d2802b2349 Mon Sep 17 00:00:00 2001 From: maren Date: Sun, 18 Feb 2024 19:31:28 -0500 Subject: [PATCH] init --- presentation.sh | 60 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 presentation.sh diff --git a/presentation.sh b/presentation.sh new file mode 100755 index 0000000..e9fc2cd --- /dev/null +++ b/presentation.sh @@ -0,0 +1,60 @@ +#!/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 just 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