Zsh、oh-my-zsh 配置

本文最后更新于 1 年前,文中所描述的信息可能已发生改变。
  1. 安装zsh
bash
sudo apt update
sudo apt upgrade
sudo apt install zsh
chsh -s /bin/zsh
  1. 安装oh-my-zsh
bash
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

国内可能失败!

解决:

bash
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
chmod +x install.sh
./install.sh
  1. 安装主题Powerlevel10k
bash
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

编辑~/.zshrc设置ZSH_THEME="powerlevel10k/powerlevel10k"

配置

bash
source ~/.zshrc
// 重新配置
p10k configure
  1. 插件安装

    1. zsh-syntax-highlighting

    bash
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
    echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
    1. zsh-autosuggestions

    bash
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  2. linux 环境还需要字体Nerd Font

软件设计模式——Java
Quarkus 基础——Java