Split library into separate script
* Allows library to be updated by git independently of presentations * Makes presentation files more clean
This commit is contained in:
parent
34aa8d5ad0
commit
4d25774a61
@ -13,8 +13,9 @@ Stop copying and pasting commands during presentations. Use this template.
|
||||
## How to Use
|
||||
|
||||
* Clone this repo
|
||||
* Modify the examples in `presentation.sh` to suit your needs
|
||||
* Run `./presentation.sh` from outside tmux
|
||||
* Read comments in `scripted-presenter.sh` to understand the options
|
||||
* Copy `presentations/example-presentation.sh` and modify it to suit your needs
|
||||
* Run your presentation from outside tmux
|
||||
* Press <kbd>enter</kbd> to advance to next command
|
||||
|
||||
## How to Contribute
|
||||
|
26
presentations/example-presentation.sh
Executable file
26
presentations/example-presentation.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source "$DIR/../scripted-presenter.sh"
|
||||
|
||||
################################################################################
|
||||
# copy this file and modify the section below for each presentation
|
||||
################################################################################
|
||||
|
||||
prompt "This is the first step, no need to wait here"
|
||||
run echo "Hello World"
|
||||
|
||||
wait_and_prompt "First command done, moving on to the second one"
|
||||
run echo "Example command number two"
|
||||
|
||||
wait_and_prompt "Let's start a ping down below..."
|
||||
run_below "-l 10" "ping localhost"
|
||||
|
||||
wait_and_prompt "Now open a ping in a new window, but don't show that window"
|
||||
run_background "win-name" "ping localhost"
|
||||
|
||||
wait_and_prompt "Finally, run a ping next to this"
|
||||
run_beside "-p 30" "ping localhost"
|
||||
|
||||
wait_and_prompt "Pressing enter one more time will kill the whole demo"
|
||||
terminate
|
@ -91,21 +91,3 @@ function focus_last() {
|
||||
function terminate() {
|
||||
tmux kill-session -t "${session}"
|
||||
}
|
||||
|
||||
prompt "This is the first step, no need to wait here"
|
||||
run echo "Hello World"
|
||||
|
||||
wait_and_prompt "First command done, moving on to the second one"
|
||||
run echo "Example command number two"
|
||||
|
||||
wait_and_prompt "Let's start a ping down below..."
|
||||
run_below "-l 10" "ping localhost"
|
||||
|
||||
wait_and_prompt "Now open a ping in a new window, but don't show that window"
|
||||
run_background "win-name" "ping localhost"
|
||||
|
||||
wait_and_prompt "Finally, run a ping next to this"
|
||||
run_beside "-p 30" "ping localhost"
|
||||
|
||||
wait_and_prompt "Pressing enter one more time will kill the whole demo"
|
||||
terminate
|
Loading…
Reference in New Issue
Block a user