Skip to content

Instantly share code, notes, and snippets.

@Pengor
Last active May 21, 2025 19:33
Show Gist options
  • Select an option

  • Save Pengor/b49a64b92f6fe57ef6cf5df4d86d4103 to your computer and use it in GitHub Desktop.

Select an option

Save Pengor/b49a64b92f6fe57ef6cf5df4d86d4103 to your computer and use it in GitHub Desktop.
Oh My Posh theme for PowerShell and Bash
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"arch": "#1793d1",
"debian": "#d70751",
"git": "#ffceca",
"mid-gray": "#9e9e9e",
"modified": "yellow",
"path": "#585858",
"path_old": "#91ddff",
"python": "#62f3a3",
"root": "#ffee58",
"staging": "green",
"stash": "#0087af",
"status": "#ff8080",
"subtle-gray": "#303030",
"terraform": "#a067da",
"time": "#fda9e4",
"true-black": "#000000",
"true-white": "#ffffff",
"ubuntu": "#e95420",
"windows": "#0078d4"
},
"palettes": {
"list": {
"arch": {
"os-accent": "#1793d1"
},
"debian": {
"os-accent": "#d70751"
},
"ubuntu": {
"os-accent": "#e95420"
},
"windows": {
"os-accent": "#0078d4"
}
},
"template": "{{ if eq .OS \"windows\" }}windows{{ else if eq .OS \"archlinux\" }}arch{{ else if eq .OS \"debian\" }}debian{{ else if eq .OS \"ubuntu\" }}ubuntu{{ end }}"
},
"upgrade": {
"source": "github",
"interval": "168h",
"auto": false,
"notice": true
},
"console_title_template": "{{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"template": " \uf0e7 ",
"foreground": "p:root",
"type": "root",
"style": "plain",
"min_width": 80
},
{
"template": " {{ .UserName }} ",
"foreground": "p:subtle-gray",
"background": "p:os-accent",
"type": "session",
"style": "diamond",
"min_width": 80
},
{
"properties": {
"branch_icon": "\uf126 ",
"branch_identical_icon": "",
"fetch_status": true
},
"template": " {{ .HEAD }}{{if .BranchStatus }}<white> {{ .BranchStatus }}</>{{ end }}{{ if .Staging.Changed }}<p:staging> \udb84\ude96{{ add .Staging.Added .Staging.Deleted .Staging.Modified }}</>{{ end }}{{ if or (.Working.Modified) (.Working.Deleted) }}<p:modified> \udb81\ude4f{{ add .Working.Modified .Working.Deleted }}</>{{ end }}{{ if .Working.Untracked }} \udb80\udea0{{ .Working.Untracked }}{{ end }}{{ if gt .StashCount 0 }}<p:stash> \uf51e{{ .StashCount }}</>{{ end }} ",
"powerline_symbol": "\ue0b0",
"background": "p:subtle-gray",
"type": "git",
"style": "powerline",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:mid-gray{{end}}",
"{{if .HEAD }}green{{end}}"
],
"min_width": 80
},
{
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}\udb85\udd0e {{ end }}{{ .Major }}.{{ .Minor }}{{ end}} ",
"foreground": "black",
"powerline_symbol": "\ue0b0",
"background": "p:python",
"type": "python",
"style": "powerline",
"min_width": 80
},
{
"properties": {
"fetch_version": true
},
"template": " {{.WorkspaceName}}{{ if .Version }} {{ .Version }}{{ end }} ",
"foreground": "black",
"powerline_symbol": "\ue0b0",
"background": "p:terraform",
"type": "terraform",
"style": "powerline",
"min_width": 80
},
{
"properties": {
"folder_icon": "\uf4d3",
"style": "agnoster_short"
},
"template": " {{ path .Path .Location }} ",
"foreground": "white",
"powerline_symbol": "\ue0b0",
"background": "p:path",
"type": "path",
"style": "powerline",
"min_width": 80
},
{
"template": " \ue20f ",
"foreground": "p:true-white",
"powerline_symbol": "\ue0b0",
"background": "p:status",
"type": "status",
"style": "powerline",
"min_width": 80
},
{
"properties": {
"archlinux": "\uf303",
"debian": "\uf306",
"display_distro_name": true,
"ubuntu": "\uf31b",
"windows": "\ue62a"
},
"template": " {{ .Icon }} ",
"foreground": "p:subtle-gray",
"background": "p:os-accent",
"type": "os",
"style": "diamond",
"max_width": 80
},
{
"properties": {
"branch_icon": "",
"branch_identical_icon": "",
"fetch_status": true
},
"template": " {{ .HEAD }} ",
"powerline_symbol": "\ue0b0",
"background": "p:subtle-gray",
"type": "git",
"style": "powerline",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:mid-gray{{end}}",
"{{if .HEAD }}green{{end}}"
],
"max_width": 80
},
{
"properties": {
"style": "folder"
},
"template": " {{ .Path }} ",
"foreground": "white",
"powerline_symbol": "\ue0b0",
"background": "p:path",
"type": "path",
"style": "powerline",
"max_width": 80
},
{
"template": " \ue20f ",
"foreground": "p:true-white",
"powerline_symbol": "\ue0b0",
"background": "p:status",
"type": "status",
"style": "powerline",
"max_width": 80
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"properties": {
"threshold": 500
},
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"template": " \uf254 {{ .FormattedMs }} ",
"foreground": "p:subtle-gray",
"background": "p:time",
"type": "executiontime",
"style": "diamond",
"min_width": 80
},
{
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4",
"template": " {{ .CurrentDate | date \"15:04\" }} \uf0ac {{ dateInZone \"15:04:05Z\" .CurrentDate \"UTC\" }} ",
"foreground": "p:time",
"background": "p:subtle-gray",
"type": "time",
"style": "diamond",
"min_width": 80
},
{
"template": "{{ dateInZone \"15:04:05Z\" .CurrentDate \"UTC\" }}",
"foreground": "p:time",
"background": "transparent",
"type": "time",
"style": "plain",
"max_width": 80
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"archlinux": "\uf303",
"debian": "\uf306",
"display_distro_name": true,
"ubuntu": "\uf31b",
"windows": "\ue62a"
},
"trailing_diamond": "<p:subtle-gray,transparent>\ue0b0</>",
"template": " {{.Icon}} ",
"foreground": "p:os-accent",
"background": "p:subtle-gray",
"type": "os",
"style": "diamond",
"min_width": 80
},
{
"template": "\ue0b1",
"foreground": "green",
"background": "transparent",
"type": "text",
"style": "plain"
}
],
"newline": true
}
],
"version": 3,
"shell_integration": true,
"enable_cursor_positioning": true,
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment