Install common tools Link to heading

apt install exa fd-find ripgrep
  • exa是一个Rust实现的高性能命令行工具,可以用来替代ls
  • fd-find是一个Rust实现的find,可以用来替代find

安装zsh Link to heading

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

安装Oh my ZSH Link to heading

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

安装zsh插件 Link to heading

  • p10k

    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
    
  • autosuggesions plugin

    git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
    
  • zsh-syntax-highlighting plugin

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    
  • zsh-fast-syntax-highlighting plugin

    git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
    
  • zsh-autocomplete plugin

    git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
    

配置.zshrc Link to heading

  • set theme to p10k

    ZSH_THEME="powerlevel10k/powerlevel10k"
    
  • enable plugin

    plugins=(
      git
      zsh-autosuggestions
      zsh-syntax-highlighting
      fast-syntax-highlighting
      zsh-autocomplete
    )
    
  • alias

    alias ls="exa"
    alias fd="fdfind"