Skip to content

Instantly share code, notes, and snippets.

@justinbalaguer
Last active March 9, 2022 03:30
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 justinbalaguer/85f81db49e4692aa2b1a5d4b40da7b6e to your computer and use it in GitHub Desktop.
Save justinbalaguer/85f81db49e4692aa2b1a5d4b40da7b6e to your computer and use it in GitHub Desktop.
Oh My Posh theme for WSL and Windows
/* Windows */
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#ff479c",
"properties": {
"prefix": "📁",
"home_icon": "~",
"style": "agnoster_full",
"enable_hyperlink": true
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#193549",
"background": "#fffb38",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_status": true,
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#111111",
"background": "#ffff66",
"properties": {
"root_icon": ""
}
},
{
"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": " 🦄"
}
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}"
}
/* WSL */
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#14A5AE",
"properties": {
"display_host": false,
"prefix": "\uf31b ",
"postfix": ":"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#0CA0D8",
"properties": {
"style": "full",
"folder_separator_icon": "/"
}
},
{
"type": "git",
"style": "plain",
"powerline_symbol": "\uE0B0",
"foreground": "#14A5AE",
"properties": {
"display_status": true,
"display_stash_count": true,
"display_upstream_icon": true,
"prefix": ""
}
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Folder }}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment