Skip to content

Instantly share code, notes, and snippets.

@tonesandtones
Last active May 23, 2025 03:13
Show Gist options
  • Select an option

  • Save tonesandtones/33698bb2f5d02a2cb6844dcfcfe6def7 to your computer and use it in GitHub Desktop.

Select an option

Save tonesandtones/33698bb2f5d02a2cb6844dcfcfe6def7 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": " {{ .Name }} /",
"foreground": "#d2ff5e",
"powerline_symbol": "\ue0b0",
"type": "shell",
"style": "plain"
},
{
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"cache_duration": "none",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"windows": "\ue70f",
"wsl_separator": " / "
},
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"foreground": "#d2ff5e",
"type": "os",
"style": "plain"
},
{
"properties": {
"cache_duration": "none",
"display_user": false
},
"template": " {{ if .SSHSession }}\ueba9 {{ end }}<#4A9207>{{ .HostName }}</> ",
"foreground": "#4A9207",
"type": "session",
"style": "plain"
},
{
"properties": {
"cache_duration": "none",
"style": "full"
},
"template": " {{ .Path }} ",
"foreground": "#0973C0",
"type": "path",
"style": "plain"
},
{
"properties": {
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": "{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
"foreground": "#B8B80A",
"type": "git",
"style": "plain"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"properties": {
"cache_duration": "none",
"charged_icon": "\udb84\ude11",
"__charged_icon_class": "nf-md-battery_heart_variant",
"charging_icon": "\udb80\udc84\uf176",
"__charging_icon_class": "nf-md-battery_charging + nf-fa-arrow_up_long",
"discharging_icon": "\udb80\udc83\uf175",
"__discharging_icon_class": "nf-md-battery_alert + nf-fa-arrow_down_long"
},
"template": " {{.Icon}} ",
"foreground": "#ffffff",
"type": "battery",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "[{{ .CurrentDate | date .Format }}]",
"foreground": "#ffffff",
"type": "time",
"style": "plain"
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": "\uf0e7 ",
"foreground": "#CECE04",
"type": "root",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "#B8B80A",
"type": "python",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "➜ ",
"foreground": "#CC4B16",
"type": "text",
"style": "plain"
}
],
"newline": true
}
],
"version": 3,
"final_space": true
}
@tonesandtones

Copy link
Copy Markdown
Author

image

@tonesandtones

Copy link
Copy Markdown
Author

Made the python segment 'not black' so the active .venv shows up on correctly on a black terminal window

image

@tonesandtones

tonesandtones commented May 23, 2025

Copy link
Copy Markdown
Author

Fixed the battery state indicator icons that were broken when the icons changed codepoints in the NerdFonts v3.0 release https://www.nerdfonts.com/releases#v3.0.0.

image

Charged
image

Charging
image

Discharging
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment