Skip to content

Feature request: add a command to only install packages that are missing #763

Open
@legeana

Description

Currently fisher install FOO always fetches FOO.

Proposal

It would be convenient to have a command like

  • fisher install_missing FOO, or
  • fisher 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.

function fisher_install_needed
    set -l installed (fisher list)
    set -l needed
    for i in $argv
        if ! contains $i $installed
            set -a needed $i
        end
    end
    if count $needed >/dev/null
        fisher install $needed
    end
end

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or bug fix

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions