From 60ae677683a759b91e9b36a3801239e9f3232573 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Sun, 2 Aug 2020 13:28:41 -0600 Subject: [PATCH] core: enable direnv in bash --- profiles/core.nix | 12 +++++++++--- profiles/develop/zsh/default.nix | 1 - 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/profiles/core.nix b/profiles/core.nix index fb87ce3..6b7fad7 100644 --- a/profiles/core.nix +++ b/profiles/core.nix @@ -15,6 +15,7 @@ in binutils coreutils curl + direnv dnsutils dosfstools fd @@ -122,9 +123,14 @@ in }; - programs.bash.promptInit = '' - eval "$(${pkgs.starship}/bin/starship init bash)" - ''; + programs.bash = { + promptInit = '' + eval "$(${pkgs.starship}/bin/starship init bash)" + ''; + shellInit = '' + eval "$(${pkgs.direnv}/bin/direnv hook bash)" + ''; + }; security = { diff --git a/profiles/develop/zsh/default.nix b/profiles/develop/zsh/default.nix index e18388d..4493b60 100644 --- a/profiles/develop/zsh/default.nix +++ b/profiles/develop/zsh/default.nix @@ -46,7 +46,6 @@ in systemPackages = with pkgs; [ bat bzip2 - direnv exa gitAndTools.hub gzip