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.