jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.53k stars 257 forks source link

How do I install plugins conditionally? #786

Closed gaerfield closed 4 months ago

gaerfield commented 4 months ago

I share my dotfiles on several machines. Some of them having installed skdman, some of them haven't. Can I configure my fish_plugins in a way that it includes some plugins only on specific conditions?

jorgebucaran/fisher
if type -q sdk
  reitzig/sdkman-for-fish
end
jorgebucaran commented 4 months ago

Nope, you can't do that right now. fish_plugins isn't code you can run; it's just a manifest of plugins you want to install or update. But you might be able to pull it off in your config.fish.