xbar-plugins icon indicating copy to clipboard operation
xbar-plugins copied to clipboard

feat: new brew-updates plugin which also replaces homebrewcask plugin

Open jimeh opened this issue 2 years ago • 1 comments

New brew-updates plugin which supports:

  • Showing outdated formulas, casks, and pinned formulas, with details about exact version numbers.
  • Upgrading:
    • Individual formulas and casks.
    • All formulas.
    • All casks.
    • All formulas and casks.
  • Pinning and unpinning formulas.
  • Uninstalling formulas, casks, and pinned formulas.

This can safely replace the existing homebrewcask plugin, especially as it seems to have been broken ever since Homebrew removed the "cask" sub-command.

It can also replace the existing brew-updates plugin, which is very basic in that it simply lists all outdated formulas and casks, with the only action available being to upgrade, without showing details about current/latest versions.


I'm not sure what the policy is on removing existing plugins, so apologies if simply removing them in a PR like this is not the right way to go about it. I'm happy to change anything as needed :)

Screenshots

New brew-updates:

new-brew-updates

Old brew-updates (removed):

Screen-Shot-2021-11-01-00-47-46 70

homebrewcask (removed):

homebrewcask

jimeh avatar Nov 01 '21 00:11 jimeh

Apologies for the force pushes. I've simply been updating my PR's here to include updates/fixes I've been making in my dotfiles.

That said, I do not expect to make any further changes for some time, as I've now resolved all annoyances I've had with this script.

jimeh avatar Nov 26 '21 10:11 jimeh

@jimeh

Looks like the branch has a conflict. Could you clear that up?

sprak3000 avatar Jan 28 '23 03:01 sprak3000

@sprak3000 all done, rebased on top of the lastest state in main, and also updated the script with a minor update from my dotfiles.

jimeh avatar Jan 29 '23 16:01 jimeh