•   30.11.2024
#WSL2 #Visual Studio Code

Install theme Powerlevel10k for WSL2 on Ubuntu, Debian (Windows 10 WSL)

1 phút đọc

1. Download & install "Zsh" on WSL2

  • Open Windows Terminal, type command:

wsl
apt install zsh
  • Check zsh verion:

zsh --version

Output:

zsh 5.8 (x86_64-ubuntu-linux-gnu)

2. Install "Oh My Zsh":

  • Clone Oh My Zsh source:

cd ~
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • Download & install the recommended font MesloLGS

3. Install "powerlevel10k"

  • Clone powerlevel10k

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

cd ~
lsa | grep zsh
vi .zshrc
  • Find & Update ZSH_THEME="robbyrussell" to ZSH_THEME="powerlevel10k/powerlevel10k"

  • Config powerlevel10k:

    If powerlevel10k not auto start, type p10k configure and choose your favorite prompt style.

photo-2022-01-13-10-19-11.jpg

Related:


Hashtags: