-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some minor alteration concerning .zshrc.pre-oh-my-zsh #2499
Comments
Probably no need for a timestamp, just a counter like In order to mitigate the side-effect of cluttering Let's see what the community thinks before PR. |
We could just use interactive |
I like this solution with |
I like this idea, but think the timestamped/countered copies might be better than We probably don't need to worry much about cluttering up IMHO, avoiding destructive changes to user data should be a high priority, and worth some clutter to make it less likely to happen. |
I went and made a PR for this: #4391. |
Another option to consider is displaying an error message telling the user to resolve the conflict by hand along the lines of "Move the conflicting filename away and try again". Either way, the user is either going to have to deal with the fact that there are multiple backups when uninstalling, or they will have to deal with the conflict upfront. I think dealing with the conflict up front is less confusing. |
I pulled @apjanke's solution in #5169, which is now ready for testing. If you want to help speed up the testing and merge (which should happen early next week), you can wget or curl it from the URL Thanks! |
Closed by #5169. |
A suggestion, but would it be possible to copy the existing
.zshrc
file to.zshrc.pre-oh-my-zsh-$(date +%s)
or the likes? I had a hanging install on password, had to kill it, then tried to install again and - of course - it overwrites my previous (correct) .zshrc file.Obviously, I should have backed it up - and its not that great of a loss, but still. Don't know if this is desirable or if people fear it might clutter up
~
a bit too much on the .zfiles potentially.The text was updated successfully, but these errors were encountered: