另外推荐几个有用的插件:zsh-syntax-highlighting、zsh-autosuggestions和zsh-autocomplete,它们未集成到oh-my-zsh,不能在plugins中直接添加,需要自行安装。 zsh-syntax-highlighting: 语法高亮显示 # 安装brew install zsh-syntax-highlighting# 向.zshrc文件的plugins中添加插件调用:echo"source$(brew --prefix)/share/...
接下来安装autojump插件,GitHub:https://github.com/wting/autojump 按照文档的安装,我采用Homebrew安装方法: brewinstallautojump 安装后会在brew的文件夹里,所以要在zsh文件中引入它。 首先是plugins()里面添加,再在文件最下方添加路径。 然而我在brew install 中出现了 Error:Command failed with exit 128: git ...
我们直接在brew中搜索zsh brew search zsh 发现可以搜索到zsh-autosuggestions 那我们直接使用homebrew安装 brew install zsh-autosuggestions 需要把source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh写入.zshrc echo"source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh">> ~/...
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 重头戏,在安装Powerlevel10k: git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k 最后安装Syntax highlighting,可以让关键指令变颜色突出显示: brew install z...
安装插件 brew install autojump 激活插件 打开文件 nano /User/dabolau/.zshrc 修改 plugins=() 为 plugins=(zsh-syntax-highlighting zsh-autosuggestions autojump) 重新启动终端 乌班图终端 zsh 安装程序 sudo apt install zsh 设置为默认终端 chsh -s /bin/zsh ...
brew install zsh-syntax-highlighting 1. 安装成功后,编辑vim ~/.zshrc文件,在最后一刚增加下面配置: source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 1. 执行source ~/.zshrc 使生效 另外一种方法,执行下面指令自动安装: ...
官网地址:https://brew.sh/index_zh-cn。 2. Homebrew安装 打开官网复制命令 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 如果在国内使用网速较慢,可以使用以下命令: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/mast...
通过Homebrew安装$ brew install zsh-syntax-highlighting在~/.zshrc配置文件最后增加如下内容:$ source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh手动安装$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting在~/.zshrc...
1.使用homebrew安装zsh-syntax-highlighting 插件。 brew install zsh-syntax-highlighting 2.配置.zshrc文件,插入一行。 source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 3.输入命令。 source ~/.zshrc 4.ls Mac OS X 是基于 FreeBSD 的,所以一些工具 ls, top 等都是 BSD 那一套...
安装shell integration 选配色:Solarized 安装oh-my-zsh sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 修改主题,配置插件等等 brew install zsh-syntax-highlighting brew install zsh-autosuggestions brew install autojump ...