-
Install
oh-my-posh
-Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
-
Run
curl https://raw.githubusercontent.com/fgalmeida/sky/master/sky.omp.json --output sky.omp.json
(assumingcurl
is installed on your system) -
Run
Copy-Item -Path sky.omp.json -Destination $HOME
-
Open up the file
$profile
in your text editor of choice (VScode:code $profile
, Notepad:notepad $profile
) -
Add these lines:
oh-my-posh init pwsh --config ~/sky.omp.json | Invoke-Expression
- Restart terminal and you should see a pretty prompt!
Edit sky.omp.json
(Notepad: notepad ~/sky.omp.json
, VScode: code ~/sky.omp.json
) and change as you see fit (how to configure a theme?)