Skip to content

Instantly share code, notes, and snippets.

@Seefer
Last active October 14, 2021 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Seefer/a874cefb25f4567b695eed9f1f5d331d to your computer and use it in GitHub Desktop.
Save Seefer/a874cefb25f4567b695eed9f1f5d331d to your computer and use it in GitHub Desktop.
My Linux Oh-My-Posh version 3 prompt configuration used in my WSL2 Linux on Windows 11 dev environment
{
"final_space": true,
"osc99": false,
"console_title": true,
"console_title_style": "folder",
"console_title_template": "",
"terminal_background": "",
"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": {
"prefix": "  ",
"style": "folder",
"display_user": false,
"display_host": true
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#ff479c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"prefix": "  ",
"style": "folder",
"display_host": true
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"invert_powerline": false,
"foreground": "#193549",
"background": "#fffb38",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_status": true,
"display_stash_count": true,
"display_upstream_icon": true,
"color_background": true,
"status_colors_enabled": true
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#6CA35E",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_version": true,
"prefix": "  "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"foreground_templates": null,
"background": "#C386F1",
"background_templates": null,
"leading_diamond": "",
"trailing_diamond": "",
"properties": null
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#8800dd",
"properties": {
"threshold": 500,
"style": "austin",
"prefix": " <#fefefe>\ufbab</> "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"foreground_templates": null,
"background": "#2e9599",
"background_templates": null,
"properties": {
"always_enabled": false,
"color_background": true,
"display_exit_code": false,
"error_color": "#f1184c",
"prefix": "<#193549></> \uE23A"
}
}
]
},
{
"type": "newline"
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"text": ""
}
}
]
}
]
}
@Seefer
Copy link
Author

Seefer commented Apr 24, 2021

My current prompt config file for Oh-My-Posh version 3. It includes .NET and NodeJS runtime version information after the Git segment. The screen clip below shows I'm rocking dotnet 3.1.408 for instance. It also adds a new line after rendering the full segment. I'm a fan of having any subsequent CLI commands I enter below any terminal status line information. The theme filename indicates this is for a desktop PC that doesn't need a battery indicator. When my Dell New XPS 15 arrives I'll create a separate theme showing battery power level.

oh-my

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