Skip to content

Instantly share code, notes, and snippets.

@shanselman
Created December 23, 2020 03:48
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save shanselman/fe2e3df3d06448604d66f6dec242ac50 to your computer and use it in GitHub Desktop.
Save shanselman/fe2e3df3d06448604d66f6dec242ac50 to your computer and use it in GitHub Desktop.
My ohMyPoshv3 json
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
"segments": [
{
"type": "session",
"style": "diamond",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "",
"properties": null
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#ff479c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"prefix": "  ",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#193549",
"background": "#fffb38",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#6CA35E",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_version": true,
"prefix": "  "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#ffff66",
"leading_diamond": "",
"trailing_diamond": "",
"properties": null
},
{
"type": "exit",
"style": "diamond",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#2e9599",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"always_enabled": true,
"color_background": true,
"display_exit_code": false,
"error_color": "#f1184c",
"prefix": "\u003ctransparent\u003e\u003c/\u003e "
}
}
]
}
]
}
@xadamxk
Copy link

xadamxk commented Jan 25, 2021

How is this file applied? Just updated from omp2 and I seem to be missing the documentation on how to add the already made modules.

@RyanHill-MSFT
Copy link

@xadamxk, check out https://ohmyposh.dev/docs/installation#override-the-theme-settings. Save the *.omp.json to your directory and reference in the Set-PoshPrompt that you add to your $profile

@xadamxk
Copy link

xadamxk commented Mar 1, 2021

@xadamxk, check out https://ohmyposh.dev/docs/installation#override-the-theme-settings. Save the *.omp.json to your directory and reference in the Set-PoshPrompt that you add to your $profile

Anytime I try to export my current theme then set it, it seems to default to Agnostic, or whatever the name of the default theme is.
However if I edit one of the default themes and set my theme to that theme, it works. I'm going that route for now and just backing up the theme file. I assume it's a bug because I have tried everything I can think to try at this point.

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment