Created
December 27, 2017 02:45
-
-
Save HaoweiCh/636953be0a2cb60982e921bac2b35c1e to your computer and use it in GitHub Desktop.
mac one step install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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