Skip to content

Instantly share code, notes, and snippets.

@wingsuitist
Last active July 22, 2020 19:42
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 wingsuitist/35606ae2fe0a626e1ccee9788c0daeaa to your computer and use it in GitHub Desktop.
Save wingsuitist/35606ae2fe0a626e1ccee9788c0daeaa to your computer and use it in GitHub Desktop.
#!/bin/bash
# print command in shell script and wait for confirmation before executing it
trap 'read -p "run: $BASH_COMMAND"' DEBUG
echo "do something interesting"
echo "do the next interesting thing"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment