Skip to content

Instantly share code, notes, and snippets.

# oh-my-posh init pwsh | Invoke-Expression # default Oh my posh theme
# Both of the following works:
# the first is using the full path to the oh my posh themes, the second is using a local path
# oh-my-posh init pwsh --config C:\Users\royat\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json | Invoke-Expression
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/roy_long_ohmyposh.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{