Coder Social home page Coder Social logo

alfred-homebrew's Introduction

Easy Homebrew

downloads

It is an Alfred workflow for you to easy brew on Alfred -- Search, get details and run Homebrew commands.

Requirements

  • Required: Python3, Alfred PowerPack
  • Homebrew required to view and run commands, searching for casks and formulae information does not rely on homebrew.

Usage

List and quick install/uninstall

  • Simply type brew to show and search for all formulae and casks
    • By default, casks will be listed first, you can add 'cask' or 'formula' to your query (before or after) to further filter results (for example brew vim formula or brew formula vim will filter out casks results and only list formula.
    • Select any casks/formula, directly install by command + enter.
    • In the dropdown list at the end, there will be an "outdated" list, where you can enter to update. There will be an "installed" list, where you can quickly uninstall by command + enter(clean uninstall) or option + enter
    • Quicklook information page on brew.sh by pressing command + Y on selected entries.

Reveal details and run commands

  • Continue to type the full name or tab-complete the selected items (if enabled in Alfred) to show details of information (Analytics, install status and newest versions, urls ...) and commands, commands include install, uninstall, upgrade, show info ... Commands will depend on install status.

  • Alternatively, in the dropdown list, select any items and press enter to see more details and applicable commands.

    • Press enter on urls will open them in the browser, on commands will run them in terminal.
    • Quicklook urls are supported for all urls.

Other lists: installed, outdated, leaves

  • View lists of homebrew leaves, installed formulae and casks, and outdated ones by typing keywords leaves, list and outdated.
    • I also added the default search_keyword brew to show installed and outdated lists, so that you can see whether a package is installed, or outdated.
    • In the outdated list, you can update one-by-one or all-at-once with a simple enter.
    • In leaves and list, directly uninstall by command + enter(clean uninstall) or option + enter
    • In leaves and list, tab-complete to view info and enter to view/run commands as you do with default brew search.
    • In leaves, quicklook is also available.

PS: In the scripts, every function returns results based on brewtype (either cask or formula), you can modify keywords and function arguments to make this workflow to the best your needs.

Thanks

alfred-homebrew's People

Contributors

yinan-c avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.