Zsh Installation
以 Arch Linux 为例。 安装zsh并设置为默认shell 安装zsh pacman -S zsh 列举安装的shells chsh -l 输出如下 /bin/sh /bin/bash /bin/zsh /usr/bin/zsh 设置zsh为默认shell chsh -s /bin/zsh 安装 Oh My Zsh Method Command curl sh -c " $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) " wget sh -c " $(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) " fetch sh -c " $(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) " 安装插件 Clone插件到 $ZSH_CUSTOM/plugins (默认~/.oh-my-zsh/custom/plugins) git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions 依次安装 zsh-autosuggestions 和 zsh-syntax-highlighting ,方法同上。 修改 ~/.zshrc ,添加插件如下 plugins=(... zsh-completions zsh-syntax-highlighting zsh-autosuggestions ) 配置主题 安装 powerlevel10k git clone --depth=1 https://github....