Homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
iTerm2
$ brew cask install iterm2
git
$ ssh-keygen -t rsa -b 4096 -C "iosdevlog@iosdevlog.com"
$ cat ~/.ssh/id_rsa.pub
添加 ~/.ssh/id_rsa.pub
到 github
。
zsh
$ brew install zsh zsh-completions
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
vim
$ git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
$ sh ~/.vim_runtime/install_awesome_vimrc.sh
Python
安装 anaconda ,选 python3
版本
用 brew install python
安装 python3
代替默认 python
# python installed by brew is python3
$ brew install python
# need to use pip3 since we are using python3
$ pip3 install --upgrade pip setuptools wheel
# install virtualenv & virtualenvwrapper
$ pip3 install virtualenv virtualenvwrapper
Add PATH to ~/.bash_profile
and ~/.zshrc
export PATH=/usr/local/share/python:$PATH
创建虚拟环境
export WORKON_HOME=~/.Envs
mkdir -p $WORKON_HOME
添加以下 ~/.bash_profile
and ~/.zshrc
# put all virtual environments in a centralized location
export WORKON_HOME=~/.Envs
# set environment variables
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
# install virtalenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
使用 mkvirtualenv
创建虚拟环境
# create virtual env
mkvirtualenv <your_virtualenv_name>
# deactivate
deactivate
# activate
workon <your_virtualenv_name>
播放器 https://iina.io/
参考
https://github.com/settings/keys
Setting up Python environment with Anaconda and Homebrew
patriciogonzalezvivo/PythonSetup.md