home: bash nonlogin path fix test
This commit is contained in:
parent
4d55372ef3
commit
fe53bca5a6
@ -45,6 +45,13 @@ in
|
|||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
|
bashrcExtra = ''
|
||||||
|
#
|
||||||
|
if ! [[ $- == *i* ]] && ! shopt -q login_shell && [[ -z "''${__NIXFILES_NOLOGIN_PATH:+x}" ]] ; then
|
||||||
|
PATH="${config.home.profileDirectory}/bin''${PATH:+:''${PATH}}" && export PATH
|
||||||
|
fi
|
||||||
|
__NIXFILES_NOLOGIN_PATH=1 && export __NIXFILES_NOLOGIN_PATH
|
||||||
|
'';
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
export HOME_MANAGER_MANAGED=true;
|
export HOME_MANAGER_MANAGED=true;
|
||||||
[[ -e ~/dotfiles/shell/.bashrc ]] && . ~/dotfiles/shell/.bashrc ]]
|
[[ -e ~/dotfiles/shell/.bashrc ]] && . ~/dotfiles/shell/.bashrc ]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user