Skip to content

Instantly share code, notes, and snippets.

@esebastian
Created July 26, 2014 10:17
Show Gist options
  • Save esebastian/e2a95138161909f516cf to your computer and use it in GitHub Desktop.
Save esebastian/e2a95138161909f516cf to your computer and use it in GitHub Desktop.
Unload environment variables in '.env' from the current shell session
# 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