美文网首页
Item2配置

Item2配置

作者: 孤独雪域 | 来源:发表于2024-03-17 16:32 被阅读0次

1.配置主题
访问iTerm2主题网站

image.png
image.png
image.png
导入主题配色:iTerm2 -> Preferences
打开配置页面,Profiles -> Colors -> Color Presets -> Import,选择到刚刚解压的主题文件。
image.png
image.png
导入完成后在Color Presets中找到Solarized Dark Higher Contrast选项勾选即可。
2.安装oh-my-zsh,需要梯子
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

设置默认 Shell

#查看系统安装的所有Shell
cat /etc/Shells
#查看当前使用的Shell
echo $Shell
#修改默认Shell为zsh
chsh -s /bin/zsh

3.配置oh-my-zsh主题

vim ~/.zshrc
#ZSH_THEME="ys" 去掉#,修改为:
ZSH_THEME="agnoster"
source ~/.zshrc

4.Powerline字体下载安装

#先使用git命令克隆
git clone https://github.com/powerline/fonts.git --depth=1

# 进入克隆到本地的fonts目录进行安装
cd fonts
./install.sh

# 删除克隆到本地的目录
cd .. 
rm -rf fonts

打开iTerm2,打开Preferences配置界面,Profiles -> Text -> Font,选择 Meslo LG M Regular for Powerline 字体。


image.png

5.声明高亮插件zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
#编辑配置文件
vim ~/.zshrc

#找到plugins配置,在括号内增加zsh-syntax-highlighting,与其他插件之间使用空格分隔开
plugins=(zsh-syntax-highlighting)

#退出编辑后执行使配置生效
source ~/.zshrc

6.自动填充建议插件zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
#编辑配置文件
vim ~/.zshrc

#找到plugins配置,在括号内增加zsh-autosuggestions,与其他插件之间使用空格分隔开
plugins=(zsh-autosuggestions)

#退出编辑后执行使配置生效
source ~/.zshrc

相关文章

  • item2配置

    item2配置 1.下载item2 2.打开 执行vim ~/.zshrc 3.找到# User configur...

  • Mac开发工具配置

    idea server 配置: http://idea.iteblog.com/ item2配色方案 vim ~/...

  • iTerm2+Vim+Ls配色

    01 Mac下终端配置(item2 + oh-my-zsh + solarized配色方案) Mac下终端配置(i...

  • iTem2 配色教程

    最终效果 配置教程 首先导入iTem2配色 https://raw.githubusercontent.com/M...

  • iterm+oh-my-zsh

    转载Mac 下终端配置(item2 + oh-my-zsh +3024Night 配色方案) - Laravel爱...

  • iTerm2一键登录服务器跳板机(免密登陆)

    一、 使用item2的profiles 和expect脚本 配置步骤: 1. 写一个expect脚本 #!/usr...

  • 玩转 Mac 之闻用录

    优雅操作 Mac 终端 安装并使用item2作为终端。 使用oh my zsh作为默认 shell,并进行配置。 ...

  • Mac终端利器--item2+ oh my zsh

    一. item2 终端安装及配置 1. 在 item 官网中 http://www.iterm2.com 下载最新...

  • mac下iterm2安装lrzsz

    下载iterm2,这个自行百度 配置item2 两个文件内容 ~/app/iterm/iterm2-send-zm...

  • mac配置item2主题

    昨天图像想优化一下自己的终端界面,于是选择比较流行的iterm2终端和powerlevel9k主题. 配置过程如下...

网友评论

      本文标题:Item2配置

      本文链接:https://www.haomeiwen.com/subject/jhaozdtx.html