Shell goodness
Also potential for RCE, yay?
This commit is contained in:
parent
6d6a991fa5
commit
6b662477c4
3 changed files with 33 additions and 5 deletions
17
hm/shell/direnv.nix
Normal file
17
hm/shell/direnv.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Allow switching to a specific environment when going into a directory
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
git.ignores = [ ".envrc" ".direnv" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue