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

我的 zsh

Jacky
7月 15, 2021干货阅读 610

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 入门
下一篇
再想想
暂无评论
近期评论
  • Jacky发表在《Nginx UI》
  • daiwenzh5发表在《Nginx UI》
  • Jacky发表在《Nginx UI》
  • daiwenzh5发表在《Nginx UI》
  • Jacky发表在《Nginx UI》
2
  • 2
  • 0
Copyright © 2016-2023 Jacky's Blog. Designed by nicetheme.
粤ICP备16016168号-1
  • 首页
  • 关于
  • 项目
  • 大事记
  • 留言板
  • 友情链接
  • 分类
    • 干货
    • 随笔
    • 项目
    • 公告
    • 纪念
    • 尝鲜
    • 算法
    • 深度学习
# Mac # # Apple # # OS X # # iOS # # macOS #
Jacky
PHP C C++ Python | 舞象之年 | 物联网工程
174
文章
169
评论
267
喜欢