From 3ca141fed09b993a4c5e09fbb5c9f9bd174cd5d1 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 23 Apr 2020 09:14:43 -0400 Subject: [PATCH] Use direnv for grabbing local env --- gitignore_global | 1 + zshrc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/gitignore_global b/gitignore_global index 062310c..16afcb4 100644 --- a/gitignore_global +++ b/gitignore_global @@ -6,3 +6,4 @@ *.DS_Store aet-*/** +.envrc diff --git a/zshrc b/zshrc index 5ae630c..f3f06ac 100644 --- a/zshrc +++ b/zshrc @@ -42,6 +42,11 @@ if which nodenv > /dev/null; then (nodenv rehash &) 2> /dev/null fi +# init direnv +if which direnv > /dev/null; then + eval "$(direnv hook zsh)" +fi + # completion autoload -U compinit compinit