Skip to content

Instantly share code, notes, and snippets.

@winmillwill
Created February 18, 2014 16:30
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 winmillwill/9074330 to your computer and use it in GitHub Desktop.
Save winmillwill/9074330 to your computer and use it in GitHub Desktop.
export environment variables with sensitive values from pass (think aws)
#!/bin/bash
creds=( `pass $1` )
for cred in "${creds[@]}"; do
export $cred;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment