-
Notifications
You must be signed in to change notification settings - Fork 264
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
Fisher initial install command overwrites fish_plugins
#705
Comments
I took a look at
|
Running `fisher install jorgebucaran/fisher` as per the instructions (https://github.com/jorgebucaran/fisher#installation) overwrites the plugin file, see jorgebucaran/fisher/issues/705.
Hmm, #611 is kinda related to this. Syncing my |
will (attempt to) install Try adding a bunch of words to Anyhow, it seems that by using
You are welcome to send me a PR adding the text you think is missing from the README, but I'm not too keen on changing how Fisher works here at this time. |
I see. I was making the assumption that Lines 89 to 91 in 0a0c489
And also making the assumption that But thanks for clarifying expectations here. The README does mention the following: Lines 99 to 111 in 0a0c489
This is what prompted me to try If the README was to be updated, I'd do something like this: ## Installation
`` `console
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
`` `
+ Installing a previous configuration with plugins? Use `curl -sL https://git.io/fisher | source && fisher update`. What do you think? I'll open a PR if you think it's good. |
Without arguments
I'll definitely think about it. 😉 |
Well, not entirely since the typical expectation is a package manager's Ultimately, I've found a workaround, but it would be great for others to be able to find the workaround more easily hence the suggested addition in the README. Or for the behaviour of the |
I see! Perhaps we should discuss changing |
I think this is a sensible middle ground.
I'm not sure either. Ultimately, I think it's a question of what is the source of truth for what packages should be installed. My view is, if
|
Whether I try |
This kind of works: But if any of the plugins fail to install then fisher removes them from the fish_plugins file which is very annoying. |
Fisher's install command could add or remove lines from fish_plugins if you manually added or removed entries and then run fisher install. You probably meant to use fisher update instead, which works as I described here. Perhaps we shouldn't let you run fisher install after you've modified the file, as that is probably a mistake anyway. If the documentation is not clear about this, I'd love to fix it. @LinuxIsCool Can you show one or more examples of either command removing lines from fish_plugins in unexpected ways? |
Thank you for the reply. fisher update was not working for me as you described here. I got it working with the line of code I posted above. I don't have time right now, but if I get a chance, I'll see if I can re-create the situation I was in and post examples of what was happening when I tried fisher update. |
Btw, you could fisher install < ~/.config/fish/fish_plugins as well. Sorry, I just have low tolerance for useless use of cat. 😂 |
I have a
fish_plugins
file committed to my dotfiles so that I can quickly install Fish plugins on new machines. Myconfig.fish
also detects the presence of thefisher
command and installs Fisher if it's not present. The current installation instructions specifies the following command to run:fisher/README.md
Line 17 in 93dafd2
The issue is the above command seems to overwrite whatever is in the
fish_plugins
file which means any other plugins infish_plugins
get removed. I'm working round this by doing the following instead:Could the README be updated with the above recipe for installing Fisher if
fish_plugins
exists. Or could thefisher
function be updated to not have this behaviour?The text was updated successfully, but these errors were encountered: