From 3e4ba989d7d4cf31dec46ac21e49640c76287e3b Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 25 Feb 2024 00:28:03 +0300 Subject: [PATCH] Bash : Add extra env BASH_PATH. --- .config/linux/system/module/common/Bash.nix | 1 + .config/linux/system/module/common/bash/Bashrc.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/linux/system/module/common/Bash.nix b/.config/linux/system/module/common/Bash.nix index 92a64ab..42204e1 100644 --- a/.config/linux/system/module/common/Bash.nix +++ b/.config/linux/system/module/common/Bash.nix @@ -1,5 +1,6 @@ { environment, ... }: { environment.etc.bash.source = ./bash; environment.variables.BASH_MODULE_PATH = "/etc/bash/module/"; + environment.variables.BASH_PATH = "/etc/bash/"; programs.bash.interactiveShellInit = ''source /etc/bash/Bashrc.sh''; } diff --git a/.config/linux/system/module/common/bash/Bashrc.sh b/.config/linux/system/module/common/bash/Bashrc.sh index 4bca11e..b459f84 100644 --- a/.config/linux/system/module/common/bash/Bashrc.sh +++ b/.config/linux/system/module/common/bash/Bashrc.sh @@ -11,7 +11,7 @@ done # Alias to reload. function bashrc() { - source ~/.bashrc + source ${BASH_PATH}/Bashrc.sh } # Export all functions.