Open
Description
Currently fisher install FOO
always fetches FOO
.
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.
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