Jacky's Blog Jacky's Blog
  • 首页
  • 关于
  • 项目
  • 大事记
  • 留言板
  • 友情链接
  • 分类
    • 干货
    • 随笔
    • 项目
    • 公告
    • 纪念
    • 尝鲜
    • 算法
    • 深度学习
  • 2
  • 0

我的 zsh

Jacky
15 7 月, 2021

macOS Catalina 开始默认的 Shell 就换成了 zsh

通过安装 zsh 的辅助插件、主题,可以实现对终端的自定义。

我的 zsh-Jacky's Blog

配置管理框架

使用开源的 ohmyzsh / ohmyzsh

安装方式

方式命令
curlsh -c “$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”
wgetsh -c “$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”
fetchsh -c “$(fetch -o – https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”

主题

使用 romkatv / powerlevel10k

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

在 ~/.zshrc 中设置 ZSH_THEME="powerlevel10k/powerlevel10k"

插件

zsh-users / zsh-autosuggestions,这个插件可以自动补全命令(通过匹配历史记录)

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

在 ~/.zshrc 中设置

plugins=( 
    # other plugins...
    zsh-autosuggestions
)

2
本文系作者 @Jacky 原创发布在 Jacky's Blog。未经许可,禁止转载。
微机原理及接口技术
上一篇
selenium 与 ChromeDriver 入门
下一篇

评论 (0)

再想想
暂无评论

近期评论

  • Jacky 发表在《留言板》
  • 菜鸟 发表在《留言板》
  • merlin 发表在《留言板》
  • orz 发表在《Xcode 中使用 Clang-format》
  • Jacky 发表在《关于》
2
Copyright © 2016-2025 Jacky's Blog. Designed by nicetheme.
粤ICP备16016168号-1
  • 首页
  • 关于
  • 项目
  • 大事记
  • 留言板
  • 友情链接
  • 分类
    • 干货
    • 随笔
    • 项目
    • 公告
    • 纪念
    • 尝鲜
    • 算法
    • 深度学习

搜索

  • Mac
  • Apple
  • OS X
  • iOS
  • macOS
  • Linux
  • 阿里云
  • WordPress
  • 运维
  • macOS Sierra

Jacky

Go Python C C++ | 弱冠之年 | 物联网工程
183
文章
192
评论
267
喜欢