From 2861c4ac00c6d257d34be1fd1626cb63ea273272 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 29 Sep 2020 15:48:26 +0000 Subject: modules/zsh: configure direnv --- modules/shell/zsh/zshrc.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index 2c339f0cc11f..b8343e938658 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -1,5 +1,6 @@ { stdenv, lib , any-nix-shell +, direnv , zsh-autosuggestions , zsh-history-substring-search , zsh-syntax-highlighting @@ -117,6 +118,8 @@ autoload -Uz compinit compinit -d "$XDG_CACHE_HOME/zsh/zcompdump" eval "$(${any-nix-shell}/bin/any-nix-shell zsh --info-right)" +eval "$(${direnv}/bin/direnv hook zsh)" + source ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ${zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh source ${zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh -- cgit 1.4.1