Skip to content

Instantly share code, notes, and snippets.

@funkymonkeymonk
Created March 26, 2015 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funkymonkeymonk/2b46a0910fb895596a48 to your computer and use it in GitHub Desktop.
Save funkymonkeymonk/2b46a0910fb895596a48 to your computer and use it in GitHub Desktop.
"echo and run" echo the argument to the shell, the run the command then wait for user input to continue. I use this to script my demos so I don't have to worry about typos when I'm presenting.
function ear {
clear
echo $1
$1
read -n 1 -s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment