From 1e61c62362579135e6a69635ac4cfc76c0c15e6f Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 16 Aug 2024 14:45:25 +0200 Subject: [PATCH] feat: add direnv --- home/dotfiles/.zshrc | 2 ++ home/home-configuration.scm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/home/dotfiles/.zshrc b/home/dotfiles/.zshrc index 9097029..fe3e18d 100644 --- a/home/dotfiles/.zshrc +++ b/home/dotfiles/.zshrc @@ -25,6 +25,8 @@ unsetopt HIST_IGNORE_ALL_DUPS setopt HIST_FCNTL_LOCK +eval "$($ZDOTDIR/direnv/direnv/bin/direnv hook zsh)" +# source $ZDOTDIR/direnv/nix-direnv source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source $ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh diff --git a/home/home-configuration.scm b/home/home-configuration.scm index d73ecba..d2542c7 100644 --- a/home/home-configuration.scm +++ b/home/home-configuration.scm @@ -37,6 +37,7 @@ ;; Shell utilities "ripgrep-all" "ripgrep" "fd" "fzf" + "direnv" ;; Fonts "font-hack" "font-dejavu" @@ -102,6 +103,7 @@ (".config/dwl/scripts/print.sh" ,(local-file "dotfiles/dwl/print.sh")) + (".config/zsh/direnv/direnv" ,direnv) (".config/zsh/plugins" ,#~(string-append #$(directory-union "zsh-plugins" (list zsh-autosuggestions zsh-syntax-highlighting)) -- 2.48.1