#########. ########",#: #########',##". ##'##'## .##',##. ## ## ## # ##",#. ## ## ## ## ##' ## ## ## :## ## ## ##." # Delete and reinstall Homebrew from Github repo rm -rf $HOME/.brew git clone --depth=1 https://github.com/Homebrew/brew $HOME/.brew # Create .brewconfig script in home directory cat > $HOME/.brewconfig.zsh </dev/null then HOMEBREW_LOCKS_TARGET=/tmp/\$USER/Homebrew/Locks HOMEBREW_LOCKS_FOLDER=\$HOME/.brew/var/homebrew mkdir -p \$HOMEBREW_LOCKS_TARGET mkdir -p \$HOMEBREW_LOCKS_FOLDER # Symlink to Locks target folders # If not already a symlink if ! [[ -L \$HOMEBREW_LOCKS_FOLDER && -d \$HOMEBREW_LOCKS_FOLDER ]] then echo "Creating symlink for Locks folder" rm -rf \$HOMEBREW_LOCKS_FOLDER ln -s \$HOMEBREW_LOCKS_TARGET \$HOMEBREW_LOCKS_FOLDER fi fi EOL # Add .brewconfig sourcing in your .zshrc if not already present if ! grep -q "# Load Homebrew config script" $HOME/.zshrc then cat >> $HOME/.zshrc <