Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 926 Bytes

File metadata and controls

33 lines (23 loc) · 926 Bytes

WeThinkCode_ Homebrew

This script installs Homebrew in your $HOME.

It will also move all temporary Homebrew data (Temp, Cache, Locks) to a dedicated folder in /tmp, leaving your home directory cleaner.

Install

Run this command from your terminal:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/wethinkcode/homebrew/master/install.sh)"

How it works

This script removes your current Homebrew installation in your home, and reinstalls it properly from the Homebrew Github repo.

Then it simply creates a .brew_fix.zsh script in your home directory, and modifies your .zshrc to source the script.

It is simple to remove, and you can re-run it multiple times without duplication.

Uninstall

Simply remove these lines from your .zshrc

# Load Homebrew Fix script
source $HOME/.brew_fix.zsh

And delete .brew_fix.zsh in your home directory.