1、zsh-syntax-highlighting(高亮语法错误) 官网:https://github.com/zsh-users/zsh-syntax-highlighting 下载插件到本地指定目录 bash gitclonehttps://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting 设置插件自动加载 bash echo"source ~/.zsh/zsh-syntax-highlighting/zsh-syn...
git clonehttps://github.com/zsh-users/zsh-syntax-highlighting.git${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 这个插件会在终端以颜色的方式提示命令是否正确。 正确命令 不正确的命令 添加配置 zsh-autosuggestion和zsh-syntax-highlighting vim ~/.zshrc 在 plugins 中换行添加即可 ...
三、oh my zsh,zsh的最佳拍档 3.1 认识oh my zsh oh my zsh是一个开源的、社区驱动的zsh配置管理框架,它的出现,彻底改变了人们配置和使用zsh的方式。在oh my zsh诞生之前,配置zsh是一项极具挑战性的任务,需要用户深入了解zsh的配置文件和各种参数,这对于普通用户来说门槛较高。oh my zsh就像是一个贴心的管家...
gitee.com/minhanghuang/ (3) 添加插件 欲添加插件,可以在 ~/.zshrc 文件中的 plugins 变量来进行添加,具体如下例: plugins=( aliases git sudo z zsh-navigation-tools zsh-autosuggestions zsh-completions zsh-syntax-highlighting ) 对于第三方插件(自行下载的插件) 要想添加插件,有以下几种方法: 1、Git 安...
快速安装oh-my-zsh的插件zsh-syntax-highlighting 1.安装如下(国内极速gitee仓库) 2.配置如下 3.效果展示 zsh-syntax-highlighting 语法高亮插件 作用:命令错误会显示红色,直到你输入正确才会变绿色 ...
参考链接:https://github.com/zsh-users/zsh-syntax-highlighting 代码语言:javascript 代码运行次数:0 运行 AI代码解释 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ...
git clone https:///zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 在zshrc中注册该插件 Finally, add the zsh-syntax-highlighting as the plugin in your .zshrc file as: ...
1. 安装zsh-syntax-highlighting# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 用不了 Github的, 可以用下面这个 gitee的 git clone https://gitee.com/zjy_1671/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-...
Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with eithercurlorwget. via curl sh -c "$(curl -fsSL https://gitee.com/huaixwang/oh-my-zsh/raw/master/tools/install.sh)" ...
享受Oh My Zsh: 现在,你已经成功在Ubuntu上安装了Oh My Zsh,并进行了基本配置。你可以开始享受更加高效和个性化的终端体验了。 此外,Oh My Zsh提供了丰富的插件和主题,你可以根据自己的需求进行选择和配置。例如,常用的插件包括git、zsh-autosuggestions、zsh-syntax-highlighting等,它们可以极大地提高你的工作效率和...