diff options
author | Robby Russell <robby@planetargon.com> | 2017-02-27 09:02:16 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2017-02-27 09:02:16 -0800 |
commit | b908feebcfb0ca8a9a80360d177e716c24c317d6 (patch) | |
tree | 966fd789c3bcdf804d6d242a3becf81afc343eaa /plugins/dotenv/dotenv.plugin.zsh | |
parent | e609fd5a9f7f7c9a16945ca9c0748b6de99f6635 (diff) | |
parent | d874c73f19d8430f4dc32756fff0bf2f6a804d87 (diff) | |
download | zsh-b908feebcfb0ca8a9a80360d177e716c24c317d6.tar.gz zsh-b908feebcfb0ca8a9a80360d177e716c24c317d6.tar.bz2 zsh-b908feebcfb0ca8a9a80360d177e716c24c317d6.zip |
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/dotenv/dotenv.plugin.zsh')
-rw-r--r-- | plugins/dotenv/dotenv.plugin.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/dotenv/dotenv.plugin.zsh b/plugins/dotenv/dotenv.plugin.zsh new file mode 100644 index 000000000..9dd784229 --- /dev/null +++ b/plugins/dotenv/dotenv.plugin.zsh @@ -0,0 +1,10 @@ +#!/bin/zsh + +source_env() { + if [[ -f .env ]]; then + source .env + fi +} + +autoload -U add-zsh-hook +add-zsh-hook chpwd source_env |