From fe53bca5a6cd30d0e091f95e8f4d7bbd7c5a1c65 Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 8 Apr 2024 10:59:56 -0400 Subject: [PATCH] home: bash nonlogin path fix test --- home/profile/base.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/profile/base.nix b/home/profile/base.nix index 34fc1de..fcb08a7 100644 --- a/home/profile/base.nix +++ b/home/profile/base.nix @@ -45,6 +45,13 @@ in programs.bash = { 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 = '' export HOME_MANAGER_MANAGED=true; [[ -e ~/dotfiles/shell/.bashrc ]] && . ~/dotfiles/shell/.bashrc ]]