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
that would only download FOO if it's not already installed.
I am currently using a workaround below, but I feel it could be a nice feature to have in fisher.
function fisher_install_needed
set-l installed (fisher list)
set-l needed
for i in$argvif ! contains$i$installedset-a needed $iendendifcount$needed>/dev/null
fisher install $neededendend
Use case
This can be convenient if you want to only download plugin if necessary, but don't really want to check for updates every time.
For example, in my automated dotfiles setup I like having idempotent commands that don't do unnecessary downloads. I prefer triggering expensive updates not as frequently.
The text was updated successfully, but these errors were encountered:
Perhaps that's how the fisher install command should work to start with. If someone wants to update a plugin, they can simply use fisher update. It would make the workflow more intuitive.
This could go into Fisher 5. I just want to make sure that it doesn't have any unintended consequences.
Any updates on this @jorgebucaran? Would also love to see this actually!
IMHO fisher update should also only update outdated plugins in order to avoid unnecessary downloads like @legeana pointed out.
No updates have been made because this issue is not trivial, a blocker or significant. For those who may not understand what's being asked: Fisher's install/update strategy is to overwrite plugins, whether or not an actual update exists. I've never encountered an issue with this.
The OP suggests that Fisher should only install or update if the plugin is not already installed or needs updates. In practice, this is not trivial and for interactive use, the benefit is nearly non-existent since installs/updates happen almost instantly.
I mentioned that I would consider this for Fisher 5, but we're stable right now, so I don't have a roadmap for that.
This probably isn't realistic for 5.0, especially since I'm hoping there won't be any breaking changes. I don't plan on releasing 5.0 just for new features. So, I've removed the 5.0 milestone and added a Future milestone instead. It's just a nod to acknowledge that this exists and we're aware of it, but it's still unlikely to happen anytime soon.
Currently
fisher install FOO
always fetchesFOO
.Proposal
It would be convenient to have a command like
fisher install_missing FOO
, orfisher install_needed FOO
that would only download
FOO
if it's not already installed.I am currently using a workaround below, but I feel it could be a nice feature to have in fisher.
Use case
This can be convenient if you want to only download plugin if necessary, but don't really want to check for updates every time.
For example, in my automated dotfiles setup I like having idempotent commands that don't do unnecessary downloads. I prefer triggering expensive updates not as frequently.
The text was updated successfully, but these errors were encountered: