Skip to content

Latest commit

 

History

History
62 lines (36 loc) · 2.89 KB

README.md

File metadata and controls

62 lines (36 loc) · 2.89 KB

Pwsh10k - Oh-my-posh theme for my favorite configuration of Powerlevel10k

PWSH10k PREVIEW Preview

badge badge badge

Prerequisites

  1. Windows Terminal (How to install)

  2. (Optional but recommended) Update to Powershell core 7 (or the newest version of powershell available) if not already (Update!)

  3. Download the MesloLGS NF font: Download these four ttf files:

Double-click on each file and press "Install". This will make MesloLGS NF font available to all applications on your system. Configure your Windows Terminal to use this font: Open Settings (Ctrl+,), search for fontFace and set value to MesloLGS NF for every profile.

  1. Run Install-Module posh-git -Scope CurrentUser, Install-Module oh-my-posh -Scope CurrentUser, and Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser

  2. Create a powershell profile if you haven't already: New-Item -ItemType File -Path $PROFILE

  3. Open up the file $profile in your text editor of choice (VScode: code $profile, Notepad: notepad $profile)

  4. Add these lines:

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme  ~/pwsh10k.omp.json

Installation steps

  1. Run git clone https://github.com/Kudostoy0u/pwsh10k

  2. Run cd pwsh10k

  3. Run Copy-Item -Path pwsh10k.omp.json -Destination $HOME

  4. Restart terminal and you should see a pretty prompt!

Use the correct font for VScode integrated terminal

  • Visual Studio Code: Open File → Preferences → Settings, enter terminal.integrated.fontFamily in the search box and set the value to MesloLGS NF

Customize my theme

Fork the project, edit the pwsh10k.omp.json file as you see fit, and run the installation instructions, replacing the link in the first step with your own repo.

If you believe there's a bug in the code feel free to make a pull request!