iTerm2+Oh My Zsh最佳终端体验

简介: iTerm2+Oh My Zsh最佳终端体验

安装Oh my zsh

安装方法有两种,可以使用curl或wget,看自己环境或喜好:

# curl 安装方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget 安装方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

image.png

安装PowerLine

pip install powerline-status --user

安装PowerFonts

# git clone
git clone https://github.com/powerline/fonts.git --depth=1
# cd to folder
cd fonts
# run install shell
./install.sh

image.png

GitHub 太慢的话,可直接下载字体,下载完成直接点击即开始安装。

image.png

安装好字体库后,设置iTerm2的字体:

iTerm2 -> Preferences -> Profiles -> Text

在Font区域

image.png

找到plugins,此时plugins中应该已经有了git,我们需要把高亮插件也加上。zsh-syntax-highlighting必须在最后一个。

image.png

看最终效果图

image.png

参考

目录
相关文章
|
8月前
cmder安装(window下好用的终端)
cmder安装(window下好用的终端)
40 0
|
8月前
|
Java 开发工具
Mac 终端定制(iTerm2 + oh-my-zsh + Powerline + solarized + agnoster)
Mac 终端定制(iTerm2 + oh-my-zsh + Powerline + solarized + agnoster)
157 0
Mac 终端定制(iTerm2 + oh-my-zsh + Powerline + solarized + agnoster)
|
开发工具 git
iterm2 oh-my-zsh 自动提示命令
iterm2 oh-my-zsh 自动提示命令
iterm2 oh-my-zsh 自动提示命令
|
搜索推荐
p10k + oh my zsh + autojump 终端配置
p10k + oh my zsh + autojump 终端配置
1217 0
|
Shell 开发工具 文件存储
mac使用zsh终端环境变量配置无效的解决方案
mac使用zsh终端环境变量配置无效的解决方案
|
Shell 程序员
美化终端:zsh和on-my-zsh配置教程
美化终端:zsh和on-my-zsh配置教程
322 0
|
Shell Linux 开发工具
oh-my-zsh让终端好用到飞起~
oh-my-zsh让终端好用到飞起~
609 0
|
Shell Windows
在Cmder中配置msys2的终端
在Cmder中配置msys2的终端
265 0
|
Shell
【技术分享】Mac终端bash和zsh切换
【技术分享】Mac终端bash和zsh切换
244 0
|
JSON Ubuntu Linux
打造Win10完美终端体验(Windows Terminal + oh-my-zsh)+ 报错解决方案
打造Win10完美终端体验(Windows Terminal + oh-my-zsh)+ 报错解决方案
1725 0
打造Win10完美终端体验(Windows Terminal + oh-my-zsh)+ 报错解决方案