From 4fa7cd6f4b7667e6a3f2b4afab74c1b1a5a98936 Mon Sep 17 00:00:00 2001 From: Brad Urani Date: Tue, 26 Sep 2017 01:19:31 -0700 Subject: [PATCH] Filter commented lines out of .env in envup Makes envup filter out comments in the .env file even if the line starts with whitespace --- zsh/functions/envup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/functions/envup b/zsh/functions/envup index 4ae3a1c0ed..c8faaca4de 100644 --- a/zsh/functions/envup +++ b/zsh/functions/envup @@ -2,7 +2,7 @@ function envup() { if [ -f .env ]; then - export $(cat .env) + export $(sed '/^ *#/ d' .env) else echo 'No .env file found' 1>&2 return 1