/pwsh10k

Powerlevel10k based theme for Powershell

Pwsh10k - A powershell theme based off of Powerlevel10k

PWSH10K PREVIEW

badge badge badge

Steps

  1. Install and configure a compatible font

  2. (Windows users only) Allow all powershell scripts to be run (Note: This will prevent Powershell from stopping you from running (potentially harmful) scripts) - Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "Unrestricted"

  3. Install oh-my-posh - Install-Module posh-git -Scope CurrentUser and Install-Module oh-my-posh -Scope CurrentUser

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

  5. Add these lines:

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme  ~/pwsh10k.omp.json
  1. Run curl https://raw.githubusercontent.com/Kudostoy0u/pwsh10k/master/pwsh10k.omp.json --output pwsh10k.omp.json (Windows users replace curl with curl.exe)

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

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

Customize my theme

Edit pwsh10k.omp.json (Notepad: notepad ~/pwsh10k.omp.json, VScode: code ~/pwsh10k.omp.json) and change as you see fit (how to configure a theme?)