-
Install
oh-my-posh
-Install-Module posh-git -Scope CurrentUser
,Install-Module oh-my-posh -Scope CurrentUser
, andUpdate-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser
-
Create a powershell profile if you haven't already:
New-Item -ItemType File -Path $PROFILE
-
Open up the file
$profile
in your text editor of choice (VScode:code $profile
, Notepad:notepad $profile
) -
Add these lines:
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme ~/pwsh10k.omp.json
-
Run
git clone https://github.com/Kudostoy0u/pwsh10k
-
Run
Copy-Item -Path pwsh10k/pwsh10k.omp.json -Destination $HOME
-
Restart terminal and you should see a pretty prompt!
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!