matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
963 stars 77 forks source link

Installation destroys existing custom prompt #199

Closed Odaeus closed 4 years ago

Odaeus commented 4 years ago

Bug Report

Current Behavior Installing Spacefish, in my case via fisher, seems to irreversibly overwrite the following files in .config/fish/functions/:

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

matchai commented 4 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! 😄