Skip to content

Instantly share code, notes, and snippets.

@krishnathota
Created October 15, 2021 16:42
Show Gist options
  • Save krishnathota/2d78b354b794abfcabc65137ec755ab7 to your computer and use it in GitHub Desktop.
Save krishnathota/2d78b354b794abfcabc65137ec755ab7 to your computer and use it in GitHub Desktop.
oh-my-posh custom theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}} ⚡ {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.Host}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "diamond",
"leading_diamond": "<transparent,#003543>\uE0B0</>",
"trailing_diamond": "\uE0B0",
"foreground": "#d2ff5e",
"background": "#003543",
"properties": {
"home_icon": "\uF7DB",
"folder_icon": "\uF6D7",
"folder_separator_icon": "<transparent> \uE0BD </>",
"style": "agnoster_short"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#00C853",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"display_status": true,
"staging_color": "#FF6F00",
"status_colors_enabled": true,
"local_changes_color": "#FFEB3B",
"ahead_and_behind_color": "#FFCC80",
"behind_color": "#B388FF",
"ahead_color": "#B388FF"
}
},
{
"type": "executiontime",
"style": "diamond",
"leading_diamond": "<transparent,#49404f>\uE0B0</>",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#49404f",
"properties": {
"threshold": 0,
"style": "dallas",
"postfix": "s "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#910000",
"properties": {
"prefix": "<transparent> \uF12A</> "
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "time",
"style": "powerline",
"invert_powerline": true,
"powerline_symbol": "\uE0B2",
"foreground": "#d2ff5e",
"background": "#003543",
"properties": {
"prefix": "<#d2ff5e> \uf64f </>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "\u276F",
"always_enabled": true,
"error_color": "#ff0000",
"display_exit_code": false
}
},
{
"type": "text",
"style": "plain",
"foreground": "#f1184c",
"properties": {
"prefix": "",
"text": "🚀"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment