Skip to content

Instantly share code, notes, and snippets.

View voiski's full-sized avatar

Alan Voiski voiski

View GitHub Profile
@voiski
voiski / brewv.sh
Last active April 15, 2021 08:50 — forked from demosten/brewv.sh
Install specific version of a Homebrew formula
#!/bin/bash
#
# Install specific version of a Homebrew formula
#
# Usage: brewv.sh install|upgrade formula_name desired_version
#
# Notes:
# - this may unshallow your brew repo copy. It might take some time the first time
# you call this script.
# - my "git log" uses less by default and when that happens it breaks the script