Skip to content

Instantly share code, notes, and snippets.

@Und3rf10w
Last active December 31, 2019 13:32
Show Gist options
  • Save Und3rf10w/d621accc64d3c530ee32a1f12b74b3a1 to your computer and use it in GitHub Desktop.
Save Und3rf10w/d621accc64d3c530ee32a1f12b74b3a1 to your computer and use it in GitHub Desktop.
How to Set up Prezto and Powerlevel10k for Kali on Windows Subsystem For Linux

Overview

This guide assumes you already have Windows Terminal preview installed, Windows Subsystem for Linux activated, and kali installed. This configuration will likely work for any debian based distro, but we're going to use kali soely for an example.

On your windows machine

The only thing you need to do is install the "DejaVuSansMonoForPowerline NF" font onto your windows machine. You can grab the zip that contains this font here. You will want to specifically install the font called DejaVu Sans Mono for Powerline Nerd Font Complete Mono Windows Compatible.ttf.

On your windows terminal

Open your kali shell in the windows terminal. In the tabbed area, click the down arrow and select "Settings". This should open a notepad with the configuration file for the Windows Terminal. Scroll down to the section that has your kali installation and add a new directive with the following line:

"fontFace": "DejaVuSansMonoForPowerline NF"

Save and close this file. Return to your kali shell.

In your Kali shell

Now run through the standard prezto installation:

sudo apt install zsh
cd ~
zsh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
chsh -s /bin/zsh
zsh

Finally, change the line in ~/.zpreztorc to use powerlevel10k:

zstyle ':prezto:module:prompt' theme 'powerlevel10k'

Now you're good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment