core: enable direnv in bash

This commit is contained in:
Timothy DeHerrera 2020-08-02 13:28:41 -06:00
parent 39c1a48674
commit 60ae677683
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 9 additions and 4 deletions

View File

@ -15,6 +15,7 @@ in
binutils binutils
coreutils coreutils
curl curl
direnv
dnsutils dnsutils
dosfstools dosfstools
fd fd
@ -122,9 +123,14 @@ in
}; };
programs.bash.promptInit = '' programs.bash = {
promptInit = ''
eval "$(${pkgs.starship}/bin/starship init bash)" eval "$(${pkgs.starship}/bin/starship init bash)"
''; '';
shellInit = ''
eval "$(${pkgs.direnv}/bin/direnv hook bash)"
'';
};
security = { security = {

View File

@ -46,7 +46,6 @@ in
systemPackages = with pkgs; [ systemPackages = with pkgs; [
bat bat
bzip2 bzip2
direnv
exa exa
gitAndTools.hub gitAndTools.hub
gzip gzip