Skip to content

Instantly share code, notes, and snippets.

@simonLeary42
Last active January 28, 2025 15:42
Show Gist options
  • Save simonLeary42/76baa6a37dcf19f158e0e42501dfd1db to your computer and use it in GitHub Desktop.
Save simonLeary42/76baa6a37dcf19f158e0e42501dfd1db to your computer and use it in GitHub Desktop.
#!/bin/env -iS PATH=/bin bash --noprofile --norc -eou pipefail
HOME=~
# this will fubar your environment and maybe kill your shell if you source it
if (return 0 2>/dev/null); then
echo "do not source this script! execute it as its own process."
return 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment