1. 首先正常安装item2
2. 加载onedrive里的传家宝iterm2_default_profile.json,让iterm2的配置生效(其实主要是该了字体为menlo,然后各种颜色按照自己喜欢的改了改,不然太丑)
2. 然后正常安装oh-my-zsh
(官方步骤:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
)
3. 安装agnoster主题相关的字体
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd .. && rm -rf fonts
4. 改.zshrc让主题生效
vi .zshrc

5. 添加plugin
下载zsh-autosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions --depth=1
下载zsh-syntax-highlighting:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting --depth=1
6.&

文章详细介绍了如何在Mac上安装和配置iTerm2,包括从OneDrive加载自定义配置文件,安装oh-my-zsh并应用agnoster主题,以及安装和设置zsh-autosuggestions和zsh-syntax-highlighting插件。此外,还解决了在新Mac上遇到的字体显示乱码问题,参考了特定的文章解决了这个问题。
2245

被折叠的 条评论
为什么被折叠?



