Skip to content

Instantly share code, notes, and snippets.

@eliotk
Created January 23, 2015 15:39
Show Gist options
  • Save eliotk/f0a65984010a84559d5f to your computer and use it in GitHub Desktop.
Save eliotk/f0a65984010a84559d5f to your computer and use it in GitHub Desktop.
Set secret environment variable on the fly while hiding it from history and from the console output
read -s; export OS_PASSWORD=$REPLY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment