Bash : Add extra env BASH_PATH.
This commit is contained in:
parent
d1551afbc7
commit
3e4ba989d7
|
@ -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'';
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ done
|
|||
|
||||
# Alias to reload.
|
||||
function bashrc() {
|
||||
source ~/.bashrc
|
||||
source ${BASH_PATH}/Bashrc.sh
|
||||
}
|
||||
|
||||
# Export all functions.
|
||||
|
|
Reference in a new issue