45 字
1 分钟
zsh-auto-suggestion
2023-10-13

安装#

安装 git 和 zsh

Terminal window
sudo apt update && sudo apt install git zsh -y

安装 oh-my-zsh

Terminal window
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装 zsh-autosuggestionszsh-syntax-highlighting~/.oh-my-zsh/custom/plugins

Terminal window
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

修改 .zshrc#

plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
git
extract
)
zsh-auto-suggestion
https://blog.alfakyun.icu/posts/zsh-auto-suggestion/
作者
Sakaizd
发布于
2023-10-13
许可协议
CC BY-NC-SA 4.0