set env variables in bash
This commit is contained in:
parent
36d841eeeb
commit
4ba7f801c4
@ -10,6 +10,20 @@
|
||||
userEmail = "aakulij@gmail.com";
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
|
||||
initExtra = ''
|
||||
# include .profile if it exists
|
||||
# necessary to import env variables set by home-manager
|
||||
[[ -f ~/.profile ]] && . ~/.profile
|
||||
'';
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user