aboutsummaryrefslogtreecommitdiff
path: root/zsh/functions/dotenv.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/functions/dotenv.zsh')
-rw-r--r--zsh/functions/dotenv.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/zsh/functions/dotenv.zsh b/zsh/functions/dotenv.zsh
new file mode 100644
index 0000000..7594e6c
--- /dev/null
+++ b/zsh/functions/dotenv.zsh
@@ -0,0 +1,6 @@
+# Dotenv Loading utility function
+dotenv () {
+ set -a
+ [ -f ./.env ] && . ./.env
+ set +a
+}