By {{< highlight go-html-template "linenos=table,hl_lines=1 3-7,linenostart=199"...
---- 概述 继续跟中华石杉老师学习ES,第62篇 课程地址: https://www.roncoo.com/view/55 ---- 官网 7.3版本Highlighting: 戳这里 ?
版权声明:本文为博主原创文章,转载请注明源地址。 https://blog.csdn.net...
github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions 看效果 安装 zsh-syntax-highlighting...git clone https://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 中换行添加即可 复制代码...plugins=( git zsh-autosuggestions autojump zsh-syntax-highlighting )
这一行里加入插件名称.当插件不包含在官方库中时, 可以自行下载并启用, 以zsh-autosuggestions: zsh-autosuggestions - github为例.zsh-syntax-highlighting.../.zsh/zsh-autosuggestions# zsh-syntax-highlightinggit clone https://github.com/zsh-users/zsh-syntax-highlighting.git...~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh# zsh-syntax-highlightingsource ~/.zsh/zsh-syntax-highlighting.../zsh-syntax-highlighting.zshStart a new terminal session.另外, Homebrew可提供了一些插件的下载, 如:# Homebrewbrew install...zsh-syntax-highlighting之后同样source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
zsh-autosuggestions ) 2.3 语法高亮 oh-my-zsh 配置语法高亮功能需要安装 zsh-syntax-highlighting 插件,具体安装步骤为: 克隆 zsh-syntax-highlighting...仓库到 oh-my-zsh 的插件目录下: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM...:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 修改 ~/.zshrc,增加 zsh-syntax-highlighting 项: plugins...zsh-syntax-highlighting ) 2.4 配置系统默认 Shell 一般我们安装 zsh 都是用来替代系统上默认的 bash,因此在配置好 zsh 后需要更换系统默认 Shell,更换命令如下
ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions git clone https://gitee.com/lightnear/zsh-syntax-highlighting.git...${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting sudo apt-get install autojump vim ~/.zshrc...# plugins=(git),改为 plugins=(git zsh-autosuggestions zsh-syntax-highlighting) # ZSH_THEME="xiong-chiamiov-plus
插件,当遇到特殊命令和错误命令时会有高亮,需要使用Homebrew安装: brew install zsh-syntax-highlighting 安装成功之后,使用命令vim ~/.zshrc进入编辑...,找到plugins增加zsh-syntax-highlighting,并在最后一行增加下面配置: source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh...[5wnlisyjto.png] [x8azoxh8go.png] 方法二 如果出现下面这种情况zsh-syntax-highlighting not found,我们使用git方法下载文件,重新启动...item2就好了 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins.../zsh-syntax-highlighting [6zodfbzo37.png] 自动建议填充 和高亮一样,将文件使用git克隆下来以后,添加plugins插件zsh-autosuggestions
install.sh)" sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" zsh-syntax-highlighting...git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom...}/plugins/zsh-syntax-highlighting zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions.git....oh-my-zsh/custom}/plugins/zsh-autosuggestions plug sed -i "s/plugins=(git)/plugins=(git zsh-syntax-highlighting
,这里可以配置一些插件和主题,以及环境变量 ZSH_THEME="agnoster" //主题配置 plugins=( git zsh-autosuggestions zsh-syntax-highlighting...) //插件配置,常用插件,git分支显示,关键字高亮,自动建议 source "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh...https://github.com/zsh-users/zsh-autosuggestions.git git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
/zsh-users/zsh-syntax-highlighting.gitecho "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh.../zsh-syntax-highlighting/zsh-syntax-highlighting.zsh或者在{/root/.oh-my-zsh/plugins/}目录:git clone https:...//github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting...然后修改 {~/.zshrc}文件在{plugins=(zsh-syntax-highlighting)}中添加。...plugins=(zsh-syntax-highlighting)还有就是比如autojump这类,自己根据需求安装。
ohmyzsh/ohmyzsh/wiki/Themes 五、安装插件 这里推荐一些小插件: thefuck:修复错误命令 zsh-autosuggestions:命令输入提示 zsh-syntax-highlighting...以上插件均可以使用 brew 进行安装: brew install thefuck brew install zsh-autosuggestions brew install zsh-syntax-highlighting...oh-my-zsh" DEFAULT_USER="$USER" ZSH_THEME="bira" plugins=( git pip zsh-autosuggestions zsh-syntax-highlighting...HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles source /usr/local/share/zsh-syntax-highlighting.../zsh-syntax-highlighting.zsh export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting
zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git...$ZSH_CUSTOM/plugins/zsh-syntax-highlighting - git clone https://github.com/zsh-users/zsh-completions...$ZSH_CUSTOM/plugins/zsh-completions - git clone https://github.com/zdharma/fast-syntax-highlighting.git...$ZSH_CUSTOM/plugins/fast-syntax-highlighting - git clone https://github.com/zsh-users/zsh-history-substring-search...git-flow go golang autojump svn gradle npm yarn node sbt grunt glup redis-cli sudo yii2 fast-syntax-highlighting
五、安装插件 这里推荐一些小插件: thefuck:修复错误命令 zsh-autosuggestions:命令输入提示 zsh-syntax-highlighting:命令行高亮显示 autojump...文件夹跳转 以上插件均可以使用brew进行安装: brew install thefuck brew install zsh-autosuggestions brew install zsh-syntax-highlighting...oh-my-zsh" DEFAULT_USER="$USER" ZSH_THEME="bira" plugins=( git pip zsh-autosuggestions zsh-syntax-highlighting...HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles source /usr/local/share/zsh-syntax-highlighting.../zsh-syntax-highlighting.zsh export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting
现在最主流的方式就是用Oh My ZSH+Powerline字体+agnoster主题+zsh-syntax-highlighting语法高亮。...brew install zsh-syntax-highlighting 然后打开~/.zshrc,找到plugins位置修改为以下内容。...) 同时在文件末尾添加 source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 这时候保存退出,然后重启终端...git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting...plugins=(git zsh-autosuggestions zsh-syntax-highlighting) ·················END·················
ITerm修改字体.jpg 设置语法高亮 -- zsh-syntax-highlighting 直接使用homebrew安装zsh-syntax-highlighting插件 brew install...zsh-syntax-highlighting 然后在根目录下.zshrc中插入下面内容: source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
二、目录 下载安装iTerm 2 安装powerline 安装oh-my-zsh 安装字体库fonts 导入配色 主题设置 添加指令高亮效果zsh-syntax-highlighting 快捷键...See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes ZSH_THEME="agnoster" 九、添加指令高亮效果zsh-syntax-highlighting...下载文件 //克隆项目到本地 git clone git://github.com/zsh-users/zsh-syntax-highlighting.git 编辑.zshrc文件,在最后添加如下内容...source /Users/WENBO/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh plugins=(zsh-syntax-highlighting
还原bash(需要重启) chsh -s /bin/bash 查看zsh版本 zsh --version 语法高亮 https://github.com/zsh-users/zsh-syntax-highlighting...因为使用了 oh-my-zsh 故安装简单很多直接 $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM...:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 然后在 ~/.zshrc 中加入插件 plugins=( zsh-syntax-highlighting
zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions # zsh-syntax-highlighting...命令行语法高亮 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh.../custom}/plugins/zsh-syntax-highlighting 设置 Oh My Zsh : vi ~/.zshrc 需要修改如下几个地方: ****** POWERLEVEL9K_MODE...COMPLETION_WAITING_DOTS="true" ****** plugins=( git extract fasd zsh-autosuggestions zsh-syntax-highlighting
zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions 使用 zsh-syntax-highlighting...参考链接:https://github.com/zsh-users/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git...${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 使用 powerlevel10k 主题 提供强大的主题定制功能,打造炫酷的终端界面...配置参考: # 主题 ZSH_THEME="powerlevel10k/powerlevel10k" # 插件 plugins=(git web-search jsontools z zsh-syntax-highlighting...参考链接 GitHub - ohmyzsh/ohmyzsh GitHub - zsh-users/zsh-syntax-highlighting: Fish shell like syntax highlighting
领取专属 10元无门槛券
手把手带您无忧上云