Skip to content

Instantly share code, notes, and snippets.

@wdhowe
Last active September 23, 2020 17:16
Show Gist options
  • Save wdhowe/18c67993e0664e62c8190898f7a0fa6d to your computer and use it in GitHub Desktop.
Save wdhowe/18c67993e0664e62c8190898f7a0fa6d to your computer and use it in GitHub Desktop.
# Export a sensitive environment variable, hiding it from command history and the terminal.
read -rs my_var ; export my_var
# Don't forget to unset it later, when done
unset my_var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment