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
I think it would be really cool to have an approach where plugins are declared in config.fish, like in fundle. I really like Fisher because it feels more organized than fundle, but I also find fundle's functionality of declaring plugins in config.fish very useful - so much so that I even implemented my own solution to make this work.
if status --is-interactive
if not functions -q fisher
curl -sL https://git.io/fisher |source&& fisher install jorgebucaran/fisher > /dev/null
fisher update > /dev/null
end
end
function@plugin;set -g plugins $plugins (string lower $argv[1]); end
@plugin jorgebucaran/fisher
@plugin jorgebucaran/autopair.fish
@plugin jorgebucaran/replay.fish
@plugin rafascalet/docker-db.fish
@plugin rafascalet/let-prompt.fish
@plugin jhillyerd/plugin-git
@plugin nickeb96/puffer-fish
@plugin gazorby/fish-abbreviation-tips
functionplugins --argument-names commandset -g installed_plugins (fisher ls)
switch $commandcase"install""i""add"
install_plugins
case"uninstall""rm""remove"
remove_plugins
case"update""up""upgrade""init"
update_plugins
end
end
functioninstall_plugins# Instalar plugins ausentesforpluginin$pluginsif not contains $plugin$installed_plugins
fisher install $plugin| head -n 3 | tail -n 1 | string replace "Installing" (set_color normal)"Installing"(set_color green)
end
end
end
functionremove_plugins# Remover plugins que não estão mais na listaforinstalled_pluginin$installed_pluginsif not contains $installed_plugin$plugins
fisher remove $installed_plugin| grep 'Removing' --color=never
end
end
end
functionupdate_plugins
install_plugins
remove_plugins
end
Do you think it would be nice to have this functionality natively in Fisher?
The text was updated successfully, but these errors were encountered:
Adding this functionality to Fisher could introduce unexpected complications, but I'm not entirely against the idea. That said, I personally lean against it. Fisher was and is still intended to be used primarily interactively, which is in the spirit of Fish (the friendly interactive shell).
I think it would be really cool to have an approach where plugins are declared in
config.fish
, like in fundle. I really like Fisher because it feels more organized than fundle, but I also find fundle's functionality of declaring plugins in config.fish very useful - so much so that I even implemented my own solution to make this work.Do you think it would be nice to have this functionality natively in Fisher?
The text was updated successfully, but these errors were encountered: