Skip to content

Instantly share code, notes, and snippets.

@HaoweiCh
Created December 27, 2017 02:45
Show Gist options
  • Save HaoweiCh/b08b02649aa3bab928db0ddbb100736c to your computer and use it in GitHub Desktop.
Save HaoweiCh/b08b02649aa3bab928db0ddbb100736c to your computer and use it in GitHub Desktop.
mac one step install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install pyenv pyenv-virtualenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshenv
echo 'export PATH=$HOME/bin:/usr/local/bin:$PATH' >> ~/.zshenv
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshenv
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshenv
echo -e 'if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; \nfi' >> ~/.zshenv
exec "$SHELL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment