nixos: inline set-environment for bash and zsh
This commit is contained in:
@@ -123,7 +123,7 @@ in
|
|||||||
programs.bash = {
|
programs.bash = {
|
||||||
|
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
. ${config.system.build.setEnvironment}
|
${config.system.build.setEnvironment.text}
|
||||||
|
|
||||||
${cfge.shellInit}
|
${cfge.shellInit}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ in
|
|||||||
if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
|
if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
|
||||||
export __ETC_ZSHENV_SOURCED=1
|
export __ETC_ZSHENV_SOURCED=1
|
||||||
|
|
||||||
. ${config.system.build.setEnvironment}
|
${config.system.build.setEnvironment.text}
|
||||||
|
|
||||||
${cfge.shellInit}
|
${cfge.shellInit}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user