Skip to content

Instantly share code, notes, and snippets.

@ero-qt
Last active June 20, 2026 09:10
Show Gist options
  • Select an option

  • Save ero-qt/f4389e403a493bdb746200711e8a4ba3 to your computer and use it in GitHub Desktop.

Select an option

Save ero-qt/f4389e403a493bdb746200711e8a4ba3 to your computer and use it in GitHub Desktop.
Oh-My-Posh Profile
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"repo": "#8fa5cb",
"path": "#8fa5cb",
"branch": "#7a86a1",
"prompt": "white"
},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "git",
"style": "plain",
"foreground": "p:repo",
"template": "<b><i>\uf09b {{ .RepoName }}</i></b> ",
"cache": {
"duration": "none"
}
},
{
"type": "path",
"style": "plain",
"foreground": "p:path",
"template": "\uf07b {{ if .Segments.Git.Dir }}{{ $pwd := replace \"\\\\\" \"/\" .PWD }}{{ $rel := regexReplaceAll (printf \"^.*/%s(/.*)?$\" .Segments.Git.RepoName) $pwd \"${1}\" }}{{ if $rel }}{{ $rel }}{{ else }}/{{ end }}{{ else }}{{ .Path }}{{ end }}",
"cache": {
"duration": "none"
},
"options": {
"style": "full",
"mapped_locations": {
"C:/Windows/System32": "\uf17a",
"/home": "\uf015",
"C:/Users": "\uf015",
"~": "\uf007",
"~/Desktop": "\udb80\uddc4",
"~/Desktop/code": "\udb82\ude1e"
}
}
},
{
"type": "git",
"style": "plain",
"foreground": "p:branch",
"template": " \ue725 {{ .HEAD }}",
"cache": {
"duration": "none"
},
"options": {
"branch_icon": ""
}
},
{
"type": "text",
"style": "plain",
"foreground": "p:prompt",
"template": " >"
}
]
}
],
"version": 3,
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment