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
I back up shell profile/rc scripts before I add Nix to them.
I need to back up /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix,
but the latter already exists.
Here's how to clean up the old backup file:
Back up (copy) /etc/bash.bashrc and /etc/bash.bashrc.backup-before-nix
to another location, just in case.
Ensure /etc/bash.bashrc.backup-before-nix does not have anything
Nix-related in it. If it does, something is probably quite
wrong. Please open an issue or get in touch immediately.
Once you confirm /etc/bash.bashrc is backed up and
/etc/bash.bashrc.backup-before-nix doesn't mention Nix, run:
mv /etc/bash.bashrc.backup-before-nix /etc/bash.bashrc
</details>
## Priorities
Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
The text was updated successfully, but these errors were encountered:
It seems that having to back up two files is confusing to people when those two files already have a "backup of" relation between themselves. I think we've had similar reports before.
What if the installer just did it for them? Or made a very concrete suggestion, such as:
time=$(date -Iminutes)
mkdir /etc/bashrc-backups-before-nix-installation-$time
cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix /etc/bashrc-backups-before-nix-installation-$time
unset time
Platform
Additional information
sh <(curl -L https://nixos.org/nix/install)
Output
I back up shell profile/rc scripts before I add Nix to them.
I need to back up /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix,
but the latter already exists.
Here's how to clean up the old backup file:
Back up (copy) /etc/bash.bashrc and /etc/bash.bashrc.backup-before-nix
to another location, just in case.
Ensure /etc/bash.bashrc.backup-before-nix does not have anything
Nix-related in it. If it does, something is probably quite
wrong. Please open an issue or get in touch immediately.
Once you confirm /etc/bash.bashrc is backed up and
/etc/bash.bashrc.backup-before-nix doesn't mention Nix, run:
mv /etc/bash.bashrc.backup-before-nix /etc/bash.bashrc
The text was updated successfully, but these errors were encountered: