From f726ccc185f1e23bc218b220e3a53ed0fa5f9c92 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 21 Nov 2023 14:37:52 +1100 Subject: [PATCH] Remove hardcoded Direnv setup, since zeval can handle it --- dot-config/zsh/interactive/direnv | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 dot-config/zsh/interactive/direnv diff --git a/dot-config/zsh/interactive/direnv b/dot-config/zsh/interactive/direnv deleted file mode 100644 index ba862dc..0000000 --- a/dot-config/zsh/interactive/direnv +++ /dev/null @@ -1,12 +0,0 @@ -#! zsh -_direnv_hook() { - trap -- '' SIGINT - emulate zsh -c "$(direnv export zsh)" - trap - SIGINT -} - -typeset -ag precmd_functions chpwd_functions -if (( $+commands[direnv] )); then - [[ -z ${precmd_functions[(r)_direnv_hook]} ]] && precmd_functions+=(_direnv_hook) - [[ -z ${chpwd_functions[(r)_direnv_hook]} ]] && chpwd_functions+=(_direnv_hook) -fi