From a86ffb5e935055dc04711c2564e825e1e9230a54 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 26 May 2022 20:39:17 +0800 Subject: Add direnv config --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 06269b2..c407f11 100644 --- a/.zshrc +++ b/.zshrc @@ -33,3 +33,7 @@ source $HOME/.zrc [[ $(uname) == Darwin ]] && [ -r $HOME/.macos ] && source $HOME/.macos [ -r $HOME/.zsh_local ] && source $HOME/.zsh_local + +if command -v direnv &> /dev/null; then + eval "$(direnv hook zsh)" +fi -- cgit v1.2.3