[Share Experiences] 使用 oh-my-zsh 安装终端命令行补全插件提高生产力
Tofloor
poster avatar
爱开发
deepin
2023-10-20 20:54
Author

使用 oh-my-zsh 安装终端命令行补全插件提高生产力

https://github.com/ohmyzsh/ohmyzsh
https://ohmyz.sh/

1. 安装

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# 国内
sh -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装插件

通过运行以下命令安装 zsh 命令行补全建议:

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

通过运行以下命令安装 zsh 语法高亮显示:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

修改配置文件 ~/.zshrc,设置插件

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

注意: 相关的 omz 配置必须在 source $ZSH/oh-my-zsh.sh 前添加。

image.png

Reply Favorite View the author
All Replies
花雨落逝
Moderator
2023-10-20 22:12
#1

这个好诶applaud

Reply View the author
蓝鲸
deepin
2023-10-20 23:22
#2

kissing_heart

Reply View the author
阿尼樱奈奈
Moderator
2023-10-20 23:27
#3

这个要点赞like

Reply View the author
希声
deepin
2023-10-21 03:01
#4

fish 原生提供该能力

Reply View the author
152******83
deepin
2024-03-22 09:42
#5

非常实用,感谢分享

Reply View the author