Skip to content

Instantly share code, notes, and snippets.

@50l3r
Last active May 27, 2025 09:57
Show Gist options
  • Save 50l3r/ea7aa4fbc94f876372bc70bac34b2c9b to your computer and use it in GitHub Desktop.
Save 50l3r/ea7aa4fbc94f876372bc70bac34b2c9b to your computer and use it in GitHub Desktop.
Oh My Posh Custom Theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{if .Segments.Git.RepoName}} {{.Segments.Git.RepoName}} {{else}} {{.Folder}} {{end}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"foreground": "#959595",
"properties": {
"display_host": true
},
"style": "plain",
"template": "\u250c {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }} "
},
{
"type": "path",
"foreground": "#fff",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "agnoster_full"
},
"style": "plain",
"template": " {{ .Path }} "
},
{
"type": "git",
"style": "plain",
"foreground": "#ff0055",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} \u2502{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ",
"properties": {
"branch_ahead_icon": "\u2191",
"branch_behind_icon": "\u2193",
"branch_gone": "\u2262",
"branch_icon": "\ue0a0 ",
"branch_identical_icon": "\u2261",
"cherry_pick_icon": "\u2713 ",
"commit_icon": "\u25b7 ",
"fetch_stash_count": true,
"fetch_status": true,
"merge_icon": "\u25f4 ",
"no_commits_icon": "[no commits]",
"rebase_icon": "\u2c62 ",
"tag_icon": "\u25b6 ",
"untracked_modes": {
"/Users/user/Projects/oh-my-posh/": "no"
}
}
},
{
"type": "terraform",
"foreground": "#ffee58",
"style": "plain",
"template": " {{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }}"
},
{
"type": "status",
"foreground": "#ff0f0f",
"style": "plain",
"template": " <#757575,>-</> {{ if gt .Code 0 }}error{{ else }}\uf42e{{ end }} "
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "time",
"foreground": "#00ff00",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": "{{ .CurrentDate | date .Format }} "
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"foreground": "#959595",
"style": "plain",
"template": "\u2514"
},
{
"type": "text",
"foreground": "#959595",
"style": "plain",
"template": "λ"
}
]
}
],
"final_space": true,
"version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment