gitclone https://github.com/zsh-users/zsh-syntax-highlighting.git${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 安装完成,查看文件 之后,在$HOME/.zshrc内激活即可: 激活插件 激活插件成功 zsh-autosuggestions 接下来是第二个第三方插件:https://github.com/zsh-users/zsh-autosugge...
https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md 根据安装说明: 1.Clone this repository in oh-my-zsh’s plugins directory: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 1 ...
插件名称:zsh-syntax-highlighting 作用:命令错误会显示红色,直到你输入正确才会变绿色,另外路径正确会显示下划线。 安装: 代码语言:txt AI代码解释 git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 配置启用...
安装Oh-My-Zsh sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 设置zsh主题 编辑~/.zshrc配置文件 ZSH_THEME="agnoster"#流行的主题有:robbyrussell, agnoster, powerlevel10k 等 启用插件 编辑~/.zshrc配置文件 plugins=(git zsh-autosuggestions zsh-syntax-hig...
最后再安装两个最常用的插件,autosuggestions和 syntax-highlighting :git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions、git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom...
sudo pacman -Sy zsh AI代码助手复制代码 在Ubuntu 安装 Zsh 终端里面输入: sudo apt-getupdatesudo apt-getinstall zsh AI代码助手复制代码 安装插件 我只需要两个插件: zsh-autosuggestions:这个是自动建议插件,能够自动提示你需要的命令。 zsh-syntax-highlighting:这个是代码高亮插件,能够使你的命令行各个命令清...
4.1 oh-my-zsh内置自动补全 4.2 zsh-completions:额外补全 4.3 zsh-autosuggestions:历史补全 4.4 Incremental completion on zsh:实时补全 4.5 zsh-syntax-highlighting:语法高亮 5 主题配置 参考资料 1 前言 回想上大学以前第一次玩linux很上头,各种配置各种花里胡哨。 从arch linux,manjaro,debian,ubuntu,deepin,...
ZSH_THEME="powerlevel10k/powerlevel10k" # 启用插件 plugins=( git zsh-autosuggestions zsh-syntax-highlighting ) 六、配置 p10k 输入以下命令即可配置 p10k, p10k configure 这里有一个很大的坑,我配置过程中,总是跳过最关键的 prompt style 这一步,导致我无法设置我最想要的 rainbow 效果 ...
如果没有设置默认终端启动为zsh(有时在服务器上开发,不便粗暴的设置),启动终端,在终端输入zsh进入。退出时输入exit. 总结 如果你也使用zsh推荐安装oh-my-zsh。可以自定义自己的插件,提高工作效率。 zsh-autosuggestions:自动补全提示已输入命令 zsh-syntax-highlighting:检测命令输入错误 ...
# zsh-syntax-highlighting 命令高亮 红色代表没有此命令 绿色可能执行此命令 zplug "zsh-users/zsh-syntax-highlighting" # autosuggestions 补全命令历史 zplug "zsh-users/zsh-autosuggestions" # gitignore 提供一条 gi 命令,用来查询 gitignore 模板。比如你新建了一个 python 项目,就可以用:gi python > .git...