Skip to content

Instantly share code, notes, and snippets.

@tanghaiduong
Forked from indiesquidge/homebrew.md
Created October 9, 2017 02:19
Show Gist options
  • Select an option

  • Save tanghaiduong/f26503f3b04112a8158837b645a4707a to your computer and use it in GitHub Desktop.

Select an option

Save tanghaiduong/f26503f3b04112a8158837b645a4707a to your computer and use it in GitHub Desktop.
How to and Best of Homebrew
  • tree
  • wget
  • htop
  • cask
  • the silver searcher
  • hub
  • vim
  • tmux
  • ranger
  • pyenv
  • rbenv
  • more to come...

Go into detail about why Homebew Cask is so awesome

  • nearly all applications you can think of are downloadable with cask
  • “To install, drag this icon…” no more!

How to keep Homebrew and Homebrew Cask clean and happy

  • aliases for pruning and cleaning

Other useful Tools (if there is time)

  • Point for Mac
  • Tab Snooze
  • etc.

How To

Homebrew is a package management system for OS X. You can read more about it here, or simply run

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

to install it.

First things first, you need to familiarize yourself with some of the basic homebrew commands.

All commands start with the binary brew.

brew search

If you are looking for something in particular, you can first search for it to see if homebrew has a formulae for what you're looking for. For example, running brew search tree will return mvptree pstree tree treecc treeline.

brew install

Once you find the formulae you're looking for, you can run brew install tree.

other important commands
  • brew list - List all installed formulae
  • brew update – Fetch the newest version of Homebrew and all formulae form GitHub using git.
  • brew upgrade [formulae] – Upgrade outdated formulae. This can take an optional argument if you only want to update one formulate
  • brew uninstall <formulae> – uninstall a specific formulae

There are a myriad of other commands and tasks you can run that we won't discuss in detail here. Running man brew or reading the documentation linked on Homebrew's main page.

Best Of

Now that you know how Homebrew functions, let's get into so of the best packages to install.

Right off the bat, brew is useful for things like git, vim, zsh, tmux, and many more base level tools that a lot of developers normally already have. We're going to look at some lesser known packages, but just know that Homebrew is getting larger, and almost anything that you would want that runs in the terminal is available as a homebrew package. If it isn't, it's incredibly easy to make it yourself. More on this later.

brew install hub

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