Bash : Add extra env BASH_PATH.

This commit is contained in:
Dmitry Voronin 2024-02-25 00:28:03 +03:00
parent d1551afbc7
commit 3e4ba989d7
2 changed files with 2 additions and 1 deletions

View file

@ -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'';
}

View file

@ -11,7 +11,7 @@ done
# Alias to reload.
function bashrc() {
source ~/.bashrc
source ${BASH_PATH}/Bashrc.sh
}
# Export all functions.