Skip to content

Instantly share code, notes, and snippets.

@Braytiner
Last active May 15, 2026 22:26
Show Gist options
  • Select an option

  • Save Braytiner/6255112d8c8f04224acac8be1df0fd40 to your computer and use it in GitHub Desktop.

Select an option

Save Braytiner/6255112d8c8f04224acac8be1df0fd40 to your computer and use it in GitHub Desktop.
A theme for Powershell using ohmyposh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#e2e2e2",
"background": "#0087af",
"properties": {
"style": "folder",
"folder_icon": "..",
"home_icon": "~",
"template": " {{ .Path }} "
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#D2D3D3",
"background": "#5A5B5B",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#343A42{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FB{{ end }}"
],
"template": " {{ .HEAD }} {{if .BranchStatus }}{{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} {{ .UpstreamIcon }} ",
"options": {
"branch_icon": "",
"fetch_status": true,
"fetch_upstream_icon": true,
"untracked_modes": {
"/Users/user/Projects/oh-my-posh/": "no"
},
"source": "cli"
}
},
{
"type": "npm",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": "\ue71e {{.Full}}"
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": "\ued0d {{ .Full }}",
"options": {
"fetch_version": true
}
},
{
"type": "angular",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": "\udb81\udebf {{ .Full }} "
},
{
"type": "react",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": " \ue7ba {{ .Full }} "
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": "\ue77f {{ .Full }} "
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": " \ue606 {{ .Full }} "
},
{
"type": "docker",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#5A5B5B",
"template": " \ue650 {{ .Context }} "
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#1F2830",
"background": "#A8D30C",
"template": " {{ .FormattedMs }} ",
"options": {
"threshold": 500,
"style": "austin",
"always_enabled": true
}
},
{
"foreground": "#D2D3D3",
"background": "#343A42",
"options": {
"time_format": "02/01 \uf43a 15:04"
},
"template": " {{ .CurrentDate | date .Format }} ",
"type": "time",
"style": "powerline",
"powerline_symbol": ""
},
{
"type": "sysinfo",
"template": "{{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}Gb ({{ round .PhysicalPercentUsed .Precision }}%)",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#D2D3D3",
"background": "#5A5B5B",
"options": {
"precision": 2
}
},
{
"type": "battery",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#A8D30C",
"background": "#343A42",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#A8D30C{{end}}",
"{{if eq \"Discharging\" .State.String}}#d70000{{end}}",
"{{if eq \"Full\" .State.String}}#343A42{{end}}"
],
"foreground_templates": [
"{{if eq \"Charging\" .State.String}}#1F2830{{end}}",
"{{if eq \"Discharging\" .State.String}}#D2D3D3{{end}}",
"{{if eq \"Full\" .State.String}}#A8D30C{{end}}"
],
"template": " {{ if not .Error }}{{ .Percentage }}% {{ .Icon }}{{ end }} ",
"options": {
"discharging_icon": "\udb80\udc8c",
"charging_icon": "\udb80\udc8f",
"charged_icon": "\udb80\udc79",
"not_charging_icon": "\udb80\udc83"
}
}
]
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#A8D30C",
"style": "plain",
"template": "\ueab6",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Folder }}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment