明天入职,公司发了 iMac,提前写个设置记录,之后就直接翻这个好了。
HomeBrew 安装
shell
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"终端安装 OMZ
bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"备份配置文件
shell
cp ~/.zshrc ~/.zshrc.orig创建新配置文件
bash
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc安装命令高亮工具
bash
brew install zsh-syntax-highlighting在.zshrc文件最后添加
shell
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh更改 iterm2 的主题
下载 iterm2 的 Dracula 主题
shell
git clone https://github.com/dracula/iterm.git设置主题
- iTerm2 > Preferences > Profiles > Colors Tab
- Open the Color Presets...
- 从列表中选择 import
- 选择刚才下载主题中
Dracula.itermcolors文件,确定
ssh 配置
shell
ssh-keygen -t ed25519 -C "felikslv@163.com"