9ecde7f73211607353954b6fd76fef56d7e663b3
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
dotenv: call function on startup
Fixes #7017
Diff
1diff --git a/plugins/dotenv/dotenv.plugin.zsh b/plugins/dotenv/dotenv.plugin.zsh
2index fa47c4c6833f2f9db3492e609f9ece46db75ebf8..a0c2d0051944c7aba5f22e6919055b0b2924ad32 100644
3--- a/plugins/dotenv/dotenv.plugin.zsh
4+++ b/plugins/dotenv/dotenv.plugin.zsh
5@@ -1,5 +1,3 @@
6-#!/bin/zsh
7-
8 source_env() {
9 if [[ -f .env ]]; then
10 if [[ -o a ]]; then
11@@ -14,3 +12,5 @@ source_env() {
12
13 autoload -U add-zsh-hook
14 add-zsh-hook chpwd source_env
15+
16+source_env