Skip to content

Instantly share code, notes, and snippets.

@ConorSheehan1
Created March 7, 2019 17:38
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 ConorSheehan1/c27c628ea1903368d864642ae37995bd to your computer and use it in GitHub Desktop.
Save ConorSheehan1/c27c628ea1903368d864642ae37995bd to your computer and use it in GitHub Desktop.

set -x shows all commands in bash as they are run. to stop showing commands, reload the shell e.g. exec $SHELL

set -x && echo "hi"
exec $SHELL

# # output (stdout)
# + echo hi
# hi
# exec /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment