Closed Odaeus closed 5 years ago
Hey Andrew. Thanks for opening an issue!
The process by which files are overwritten in this case is entirely determined by the plugin manager (fisher, in this case).
I would suggest you create this issue on their repo, as they would be able to warn the user when installing plugins. They would also be able to provide support for backups to be made of your prompt before it is overwritten by a plugin being installed.
Cheers! 😄
Bug Report
Current Behavior Installing Spacefish, in my case via
fisher
, seems to irreversibly overwrite the following files in.config/fish/functions/
:fish_prompt.fish
fish_left_prompt.fish
fish_right_prompt.fish
This results in data loss if the user already has custom content in those files.
Expected Behavior Not to overwrite files without warning.
Environment
Possible Solution There are many options, perhaps the simplest would be to put a warning at the top of the Install section of the README that this will happen.
More complicated solutions would be:
Regards, Andrew