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 ...
安装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...
插件名称: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 配置启用...
sudo pacman -Sy zsh AI代码助手复制代码 在Ubuntu 安装 Zsh 终端里面输入: sudo apt-getupdatesudo apt-getinstall zsh AI代码助手复制代码 安装插件 我只需要两个插件: zsh-autosuggestions:这个是自动建议插件,能够自动提示你需要的命令。 zsh-syntax-highlighting:这个是代码高亮插件,能够使你的命令行各个命令清...
git clone https://gh.xmly.dev/https://github.com/zsh-users/zsh-syntax-highlighting.git${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting# 加速3 git clone https://gh.api.99988866.xyz/https://github.com/zsh-users/zsh-syntax-highlighting.git${ZSH_CUSTOM:-~/.oh-my-zsh...
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,...
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting 通过文本编辑器打开 ~/.zshrc文件(使用以下命令),并找到 plugins=(git) 一行。并将其替换为以下内容: nano ~/.zshrc plugins=(git zsh-autosuggestions zsh-syntax-highlighting) ...
Oh My Zsh 包含了许多插件和主题,可以通过修改.zshrc配置文件来启用它们。你可以使用以下命令打开.zshrc文件: nano ~/.zshrc 1. 在.zshrc文件中,你可以修改以下两部分内容: 插件:在plugins=(...)中添加你需要的插件。例如: plugins=(git zsh-autosuggestions zsh-syntax-highlighting) ...
zsh插件 上面配置中有两个插件oh my zsh是不提供的,需要进行额外的安装和配置才能够使用。 zsh-syntax-highlighting提供命令高亮现实,比方命令输入错误显示红色,命令输入正确显示绿色。zsh-autosuggestions提供命令建议,可以根据你执行的Shell命令记录,自动建议补全。 官方方法 可以使用官方详情的安装方法(重点是oh-my-zsh...