aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-05-26 20:39:17 +0800
committerGuangxiong Lin <[email protected]>2022-05-26 20:39:17 +0800
commita86ffb5e935055dc04711c2564e825e1e9230a54 (patch)
treeadabd6d9adb6e30fb6324b454c24aaa5aed5e204 /.zshrc
parent01d553eaa984138359d033bae2aecaf78f1e2e81 (diff)
downloaddotfiles-a86ffb5e935055dc04711c2564e825e1e9230a54.tar.gz
dotfiles-a86ffb5e935055dc04711c2564e825e1e9230a54.tar.bz2
dotfiles-a86ffb5e935055dc04711c2564e825e1e9230a54.zip
Add direnv config
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
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