Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eugrus/7f86bc47c21bd03897d4b3a679792907 to your computer and use it in GitHub Desktop.
Save eugrus/7f86bc47c21bd03897d4b3a679792907 to your computer and use it in GitHub Desktop.
create a bin environment with package managers for and by a simple user in his home directory
mkdir ~/bin
mkdir ~/.local
mkdir ~/.local/bin
git clone https://github.com/Homebrew/brew homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"
echo 'export PATH=$PATH:$HOME/bin:$HOME/.local/bin:$HOME/homebrew/bin' >> ~/.bashrc
source ~/.bashrc
curl https://bootstrap.pypa.io/get-pip.py | python3 - --user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment