environment: include /usr/sbin and /sbin in systemPath
Don't extend initial PATH adding extra entries should be done through appending environment.systemPath or manually extending it with environment.extraInit or similar options.
This commit is contained in:
parent
c8ce901a43
commit
1b6f56f5b8
5 changed files with 8 additions and 7 deletions
|
|
@ -63,7 +63,7 @@ in
|
|||
if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi
|
||||
__ETC_BASHRC_SOURCED=1
|
||||
|
||||
export PATH=${config.environment.systemPath}''${PATH:+:$PATH}
|
||||
export PATH=${config.environment.systemPath}
|
||||
${config.system.build.setEnvironment}
|
||||
${config.system.build.setAliases}
|
||||
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ in
|
|||
|
||||
set fish_function_path $fish_function_path ${pkgs.fish-foreign-env}/share/fish-foreign-env/functions
|
||||
|
||||
set PATH ${replaceStrings [":"] [" "] config.environment.systemPath} $PATH
|
||||
set PATH ${replaceStrings [":"] [" "] config.environment.systemPath}
|
||||
|
||||
${config.system.build.setEnvironment}
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ in
|
|||
|
||||
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
|
||||
|
||||
export PATH=${config.environment.systemPath}''${PATH:+:$PATH}
|
||||
export PATH=${config.environment.systemPath}
|
||||
${config.system.build.setEnvironment}
|
||||
${config.system.build.setAliases}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue