Skip to content

Instantly share code, notes, and snippets.

@Lerie82
Created June 14, 2018 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lerie82/09e412f8421c22322178dd6fcf74d473 to your computer and use it in GitHub Desktop.
Save Lerie82/09e412f8421c22322178dd6fcf74d473 to your computer and use it in GitHub Desktop.
install homebrew for ubuntu with linuxbrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment