Skip to content

Instantly share code, notes, and snippets.

@andrelramos
Forked from sibelius/myenvs
Created May 15, 2018 12:43
Show Gist options
  • Save andrelramos/aa43c818e6ece74c82f467f7fab809e2 to your computer and use it in GitHub Desktop.
Save andrelramos/aa43c818e6ece74c82f467f7fab809e2 to your computer and use it in GitHub Desktop.
Myenvs
function myenvs() {
if [[ $# -ne 1 ]]; then
export $(cat .env | xargs)
else
export $(cat $1 | xargs)
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment