Skip to content

Instantly share code, notes, and snippets.

@codeprefect
Last active September 10, 2021 10:32
Show Gist options
  • Save codeprefect/19800b03f880aa26274531bdaf5941cb to your computer and use it in GitHub Desktop.
Save codeprefect/19800b03f880aa26274531bdaf5941cb to your computer and use it in GitHub Desktop.
Oh My Posh
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": []
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"trailing_diamond": "",
"leading_diamond": "\uE0b6",
"properties": {
"postfix": " ",
"display_host": false
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#ff479c",
"properties": {
"prefix": "  ",
"home_icon": "~",
"folder_separator_icon": " \uE0b1 ",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#fffb38",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": true,
"local_changes_color": "#ff9248",
"ahead_and_behind_color": "#f26d50",
"behind_color": "#f17c37",
"ahead_color": "#89d1dc",
"stash_count_icon": "\uF692 ",
"display_status": true,
"working_color": "#FFFF55",
"staging_color": "#0000FF"
}
},
// {
// "type": "node",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#ffffff",
// "background": "#6CA35E",
// "properties": {
// "prefix": " \uF898 ",
// "display_version": true
// }
// },
// {
// "type": "go",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#111111",
// "background": "#8ED1F7",
// "properties": {
// "prefix": " \uE626 ",
// "display_version": true
// }
// },
// {
// "type": "julia",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#111111",
// "background": "#4063D8",
// "properties": {
// "prefix": " \uE624 ",
// "display_version": true
// }
// },
// {
// "type": "python",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#111111",
// "background": "#FFDE57",
// "properties": {
// "prefix": " \uE235 ",
// "display_version": true,
// "display_mode": "files",
// "display_virtual_env": false
// }
// },
// {
// "type": "ruby",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#ffffff",
// "background": "#AE1401",
// "properties": {
// "prefix": " \uE791 ",
// "display_version": true,
// "display_mode": "files"
// }
// },
// {
// "type": "azfunc",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#ffffff",
// "background": "#FEAC19",
// "properties": {
// "prefix": " \uf0e7",
// "display_version": false,
// "display_mode": "files"
// }
// },
// {
// "type": "aws",
// "style": "powerline",
// "powerline_symbol": "",
// "foreground": "#ffffff",
// "background_templates": [
// "{{if contains \"default\" .Profile}}#FFA400{{end}}",
// "{{if contains \"jan\" .Profile}}#f1184c{{end}}"
// ],
// "properties": {
// "prefix": " \uE7AD ",
// "display_default": false
// }
// },
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#111111",
"background": "#ffff66",
"properties": {
"root_icon": ""
}
},
{
"type": "executiontime",
"style": "plain",
"foreground": "#ffffff",
"background": "#83769c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"always_enabled": true,
"prefix": "<transparent></> \ufa1e"
}
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#2e9599",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": "<#83769c></> "
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "shell",
"style": "plain",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"prefix": "<#0077c2,transparent>\uE0C2</>  ",
"postfix": " <transparent,#0077c2>\uE0B2</>"
}
},
{
"type": "ytm",
"style": "powerline",
"powerline_symbol": "\uE0B2",
"invert_powerline": true,
"foreground": "#111111",
"background": "#1BD760",
"properties": {
"prefix": "\uF167 ",
"paused_icon": " ",
"playing_icon": " "
}
},
{
"type": "battery",
"style": "diamond",
"invert_powerline": true,
"leading_diamond": "\uE0B2",
"foreground": "#ffffff",
"background": "#f36943",
"properties": {
"battery_icon": "",
"discharging_icon": " ",
"charging_icon": " ",
"charged_icon": " ",
"color_background": true,
"charged_color": "#4caf50",
"charging_color": "#40c4ff",
"discharging_color": "#ff5722",
"postfix": " <transparent,#2e9599>\uE0B2</>"
}
},
{
"type": "time",
"style": "diamond",
"invert_powerline": true,
"trailing_diamond": "\uE0B4",
"background": "#2e9599",
"foreground": "#111111",
"properties": {
"prefix": "<#2e9599,transparent>\uE0B2</> ",
"time_format": "15:04",
"postfix": " \uf64f"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "diamond",
"background": "#d3d7cf",
"leading_diamond": "∫",
"properties": {
"prefix": "",
"postfix": "",
"text": ""
}
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "text",
"style": "diamond",
"background": "#d3d7cf",
"trailing_diamond": "֍",
"properties": {
"text": ""
}
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment