Last active
September 23, 2020 17:16
-
-
Save wdhowe/18c67993e0664e62c8190898f7a0fa6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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