From af640cd09268a8c8249cce5f919881f2e7b87c10 Mon Sep 17 00:00:00 2001 From: Michael Yockey Date: Mon, 16 Sep 2024 09:02:24 -0400 Subject: [PATCH] Add direnv support --- dependencies/homebrew.txt | 1 + nvim/.config/nvim/lua/yock/plugins/direnv.lua | 5 +++++ zsh/dot-zshrc | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 nvim/.config/nvim/lua/yock/plugins/direnv.lua diff --git a/dependencies/homebrew.txt b/dependencies/homebrew.txt index afe80ae..9d3ae63 100644 --- a/dependencies/homebrew.txt +++ b/dependencies/homebrew.txt @@ -1,3 +1,4 @@ +direnv fd fzf gh diff --git a/nvim/.config/nvim/lua/yock/plugins/direnv.lua b/nvim/.config/nvim/lua/yock/plugins/direnv.lua new file mode 100644 index 0000000..93d57e3 --- /dev/null +++ b/nvim/.config/nvim/lua/yock/plugins/direnv.lua @@ -0,0 +1,5 @@ +return { + 'direnv/direnv.vim', + config = function() + end, +} diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index 564e255..3c1af40 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -1,5 +1,8 @@ source ~/.env +# direnv +eval "$(direnv hook zsh)" + # rbenv eval "$(rbenv init -)"