Skip to content

Instantly share code, notes, and snippets.

@Klrfl
Last active June 27, 2025 14:25
Show Gist options
  • Save Klrfl/1972d54a5a58afe775f4379ec9e7474f to your computer and use it in GitHub Desktop.
Save Klrfl/1972d54a5a58afe775f4379ec9e7474f to your computer and use it in GitHub Desktop.
Custom Oh My Posh theme.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"pink": "#f5c2e7",
"mauve": "#cba6f7",
"red": "#f38ba8",
"peach": "#fab387",
"maroon": "#eba0ac",
"green": "#a6e3a1",
"sapphire": "#74c7ec",
"blue": "#89b4fa",
"lavender": "#b4befe",
"text": "#cdd6f4",
"surface2": "#585b70",
"surface1": "#45475a",
"surface0": "#313244",
"base": "#1e1e2e"
},
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "p:surface1",
"foreground": "p:text",
"leading_diamond": "\u256d\u2500\ue0b6",
"froperties": {
"alpine": "\uf300",
"arch": "\uf303",
"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"
},
"style": "diamond",
"template": "{{ .Icon }} ",
"trailing_diamond": "\ue0b0",
"type": "os"
},
{
"background": "p:surface0",
"foreground": "p:text",
"style": "diamond",
"template": " {{ .UserName }} ",
"trailing_diamond": "\ue0b0",
"type": "session"
},
{
"background": "p:base",
"foreground": "p:pink",
"properties": {
"folder_icon": "\u2026",
"folder_separator_icon": " \ue0b1 ",
"style": "agnoster_short",
"max_depth": 3
},
"style": "diamond",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "p:blue",
"foreground": "p:base",
"style": "diamond",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:peach{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
"{{ if gt .Ahead 0 }}p:mauve{{ end }}",
"{{ if gt .Behind 0 }}p:sapphire{{ end }}"
],
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"leading_diamond": "<transparent>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"background": "p:surface0",
"foreground": "p:text",
"leading_diamond": "\ue0b2",
"trailing_diamond": "\ue0b0",
"properties": {
"style": "austin",
"threshold": 150
},
"style": "diamond",
"template": "⌛ {{ .FormattedMs }} ",
"type": "executiontime"
},
{
"background": "p:surface1",
"foreground": "p:text",
"leading_diamond": "\ue0b2",
"properties": {
"time_format": "15:04:05"
},
"style": "diamond",
"template": " {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0b4",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "p:surface0",
"style": "plain",
"template": "\u2570\u2500",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Folder }}",
"transient_prompt": {
"foreground": "#B48EAD",
"foreground_templates": ["{{ if gt .Code 0 }}#BF616A{{ end }}"],
"template": "\u276f "
},
"version": 2
}
@Klrfl
Copy link
Author

Klrfl commented Oct 25, 2023

This is my custom Oh My Post terminal prompt with Catpuccin Mocha color scheme. I put it in ~/.config/zsh/

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