前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >在macOS10.15下面安装配置oh my zsh

在macOS10.15下面安装配置oh my zsh

作者头像
零云
发布2023-07-24 21:14:26
1880
发布2023-07-24 21:14:26
举报
代码语言:javascript
复制
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo easy_install pip
pip install powerline-status --user
cd ~/Desktop
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts&&./install.sh
git clone https://github.com/altercation/solarized
open .solarized/osx-terminal.app-colors-solarized
双击里面的两个.terminal文件完成安装
cd ~
vim ~/.zshrc

如下图修改主题:

修改完成后按一下esc调出vi命令,输入:wq保存并退出vi模式。

此时command+Q或source配置文件后,终端变了模样:

代码语言:javascript
复制
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions
brew install autojump
vim ~/.zshrc

找到类似下面的代码替换

代码语言:javascript
复制
plugins=(                                                                     
   git                                                                         
   autojump                                                                    
   zsh-autosuggestions                                                         
   zsh-syntax-highlighting                                                     
 )                                                                             

 source $ZSH/oh-my-zsh.sh                                                      
 source ~/.bash_profile     
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-10-25 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档