Code Monkey home page Code Monkey logo

42homebrewfix's Introduction

42 Homebrew Fix

This script installs Homebrew properly in your home on your 42 session.

It fixes the flock issue due to NFS mount of your home directory.

It will also move all temporary Homebrew data (Temp, Cache, Locks) to a dedicated folder in /tmp, leaving your home directory cleaner, so it's useful even if you're on the new ISCSI sessions that support flock operations.

Install

Run this command from your terminal:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/kube/42homebrewfix/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.

42homebrewfix's People

Contributors

kube avatar neolectron avatar

Watchers

 avatar  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.