Skip to content

Instantly share code, notes, and snippets.

@aritraroy24
Last active July 23, 2021 06:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aritraroy24/2a578d151ae8209aabdcfa5b477b998e to your computer and use it in GitHub Desktop.
Save aritraroy24/2a578d151ae8209aabdcfa5b477b998e to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#5aeea4"
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#18f123",
"background": "#242424",
"properties": {
"display_host": false,
"postfix": " "
}
},
{
"type": "battery",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#f36943",
"properties": {
"battery_icon": "",
"color_background": true,
"charged_color": "#50cdff",
"charging_color": "#ffa32a",
"discharging_color": "#ff0000",
"postfix": "\uF295 "
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffe866",
"background": "#242424",
"properties": {
"time_format": " 2006-01-02",
"prefix": ""
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#242424",
"background": "#ffe866",
"properties": {
"time_format": "15:04:05",
"prefix": " "
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": " ",
"foreground": "#f84e78",
"background": "#242424",
"properties": {
"prefix": "\uE5FF ",
"style": "full",
"folder_separator_icon": "/"
}
},
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"prefix": " \uFCB5 "
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#462e00",
"background": "#fffb00",
"properties": {
"display_status": true,
"display_stash_count": true,
"display_upstream_icon": true,
"prefix": " "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#242424",
"background": "#33DD2D",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"color_background": true,
"error_color": "#f1184c",
"prefix": " \ufc8d"
}
}
]
},
{
"type": "newline"
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ee00e2",
"properties": {
"prefix": "",
"text": "\u21d2"
}
}
]
}
],
"final_space": true
}
@JamesSkemp
Copy link

Inside properties on lines 89-93 the following will need to be added:

"display_status": true,

This is because the default for display_status has changed.

Starting from version 3.152.0, display_status is disabled by default.

Thanks for this and the associated article! While there were a lot, the out of the box themes that looked good didn't include git status.

@aritraroy24
Copy link
Author

Inside properties on lines 89-93 the following will need to be added:

"display_status": true,

This is because the default for display_status has changed.

Starting from version 3.152.0, display_status is disabled by default.

Thanks for this and the associated article! While there were a lot, the out of the box themes that looked good didn't include git status.

Thanks, @JamesSkemp, for pointing out...I'm delighted that you found my article engaging...thanks again for your support...

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