Created
July 26, 2014 10:17
-
-
Save esebastian/e2a95138161909f516cf to your computer and use it in GitHub Desktop.
Unload environment variables in '.env' from the current shell session
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
# execute on the prompt or define it as a shell function | |
for i in `cat .env`; do | |
unset `echo $i | cut -f 1 -d "="` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment