Skip to content

Commit

Permalink
Add envup script for loading environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
christoomey committed Sep 13, 2013
1 parent 81a33f7 commit 655a76a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions zsh/functions/envup
@@ -0,0 +1,10 @@
# Load .env file into shell session for environment variables

function envup() {
if [ -f .env ]; then
export `cat .env`
else
echo 'No .env file found' 1>&2
return 1
fi
}

0 comments on commit 655a76a

Please sign in to comment.