Skip to content

Instantly share code, notes, and snippets.

@Mo-Shakib
Created February 5, 2021 00:29
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 Mo-Shakib/af80ec5c51e461e406dd380fb9870071 to your computer and use it in GitHub Desktop.
Save Mo-Shakib/af80ec5c51e461e406dd380fb9870071 to your computer and use it in GitHub Desktop.
Oh-My-Posh 3 custom theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "diamond",
"foreground": "#c386f1",
"properties": {
"prefix": "",
"text": "╔═"
}
},
// Custom text section
{
"type": "text",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"trailing_diamond": "\uE0B0",
"properties": {
"prefix": "",
"text": " Shakib"
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#fff",
"properties" : {
"home_icon": "\uF7DB",
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "agnoster"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#fffb38",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
},
// execution time:
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#8800dd",
"properties": {
"threshold": 500,
"style": "austin",
"prefix": " <#fefefe>\ufbab</> "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#ffff66"
},
{
"type": "exit",
"style": "diamond",
"trailing_diamond": "\uE0B0",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#1BD760",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#fc0707",
"color_background": true,
"prefix": "<transparent>\uE0B0</> \uE23A"
}
}
]
},
// Time section:
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#ffffff",
"properties": {
"time_format": "15:04",
"postfix": " \uF017 "
}
}
]
},
{
"type": "newline"
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "diamond",
"foreground": "#c386f1",
"properties": {
"prefix": "",
"text": "╚═"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#D4E157",
"properties": {
"prefix": "\u276F",
"always_enabled": true,
"error_color": "#FF5252",
"display_exit_code": false
}
}
]
}
]
}
@Mo-Shakib
Copy link
Author

theme screenshot

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