HomeBrew
国内安装:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
JDK
Oracle官网下载JDK1.8安装包:
配置系统的环境变量:
JDK真实主目录如下:
/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
打开
.bash_profile
,在文件的末尾加入这几行语句:
open ~/.bash_profile
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH:.
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
source ~/.bash_profile
验证JDK1.8是否安装成功
# 确认配置生效
java -version
ITerm2
下载地址:https://iterm2.com/downloads.html
主题配置:
主题:Solarized Dark theme,下载地址:http://ethanschoonover.com/solarized
配置:打开 Preferences ,
Profiles -> Colors -> Color Presets
,选择 Import。选择刚才解压的
solarized->iterm2-colors-solarized->Solarized Dark.itermcolors
文件。导入成功后,在
Color Presets
下选择Solarized Dark
主题。
ZSH
# 使用brew安装zsh
brew install zsh
# 将zsh加入shells备选列表
echo /usr/local/bin/bash | sudo tee -a /etc/shells
# 切换到zsh(之后需要重新打开命令窗口)
chsh -s /usr/local/bin/zsh
OhMyzsh
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
配置zsh:
vi ~/.zshrc
根据主题列表 https://github.com/ohmyzsh/ohmyzsh/wiki/themes ,选择想要的主题
ZSH_THEME="af-magic
#改为
ZSH_THEME="ys"
Python
brew install python3