You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following the installation instructions in the manual to perform a multi-user installation of the nix package-manager, the installation does not work as expected.
While all the files are installed correctly, the snippets for bash are not loaded, because the file /etc/bashrc does not exist.
When instructed to open a new shell and to run 'nix-shell' that should do something, but it doesn't, because there is no file /etc/bashrc.
Additional context
Adding /etc/bashrc (sudo touch /etc/bashrc) will add this section to the file:
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
Possible solution
Either add the snippet to a new file /etc/bashrc if it does not exist or at least do not report success if none of the mechanisms to inject the loading found a suitable location to be inserted.
The text was updated successfully, but these errors were encountered:
I believe this is covered by my unreleased fix in c40bad4. (The focus there is ZSH, but the tentative fix is touching these files if the directory exists).
Uh oh!
There was an error while loading. Please reload this page.
When following the installation instructions in the manual to perform a multi-user installation of the nix package-manager, the installation does not work as expected.
While all the files are installed correctly, the snippets for bash are not loaded, because the file /etc/bashrc does not exist.
Expected behavior
When instructed to open a new shell and to run 'nix-shell' that should do something, but it doesn't, because there is no file /etc/bashrc.
Additional context
Adding /etc/bashrc (sudo touch /etc/bashrc) will add this section to the file:
Possible solution
Either add the snippet to a new file /etc/bashrc if it does not exist or at least do not report success if none of the mechanisms to inject the loading found a suitable location to be inserted.
The text was updated successfully, but these errors were encountered: