以下命令要求系统已安装 zsh、git 和 curl,并以需要使用该配置的用户身份执行。
运行下面的命令一键安装ohmyzsh
1
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
一键安装命令自动建议插件
1
2
| git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" \
&& sed -i.bak 's/^plugins=(\(.*\))/plugins=(\1 zsh-autosuggestions)/' ~/.zshrc
|