Linux 安装 Oh My Zsh 与 zsh-autosuggestions

在已安装 Zsh 的 Linux 环境中安装 Oh My Zsh 与命令自动建议插件,自动更新插件配置。

以下命令要求系统已安装 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
使用 Hugo 构建
主题 Stack 由 Jimmy 设计