init
This commit is contained in:
commit
67ca8b0295
1 changed files with 60 additions and 0 deletions
60
presentation.sh
Executable file
60
presentation.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue