Skip to content

Instantly share code, notes, and snippets.

@BoscoDomingo
Last active November 4, 2025 18:42
Show Gist options
  • Select an option

  • Save BoscoDomingo/62f35772e52178b31353a99d2d80ca77 to your computer and use it in GitHub Desktop.

Select an option

Save BoscoDomingo/62f35772e52178b31353a99d2d80ca77 to your computer and use it in GitHub Desktop.
My personal Oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{ .Folder }} {{.UserName}}@{{.HostName}}",
// Some handy symbols for the theme:
//              
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"properties": {
"alpine": "\uf300 ", // 
"arch": "\uf303 ", // 
"centos": "\uf304 ", // 
"debian": "\uf306 ", // 
"elementary": "\uf309 ", // 
"fedora": "\uf30a ", // 
"gentoo": "\uf30d ", // 
"linux": "\ue712 ", // 
"macos": "\uf179 ", // 
"manjaro": "\uf312 ", // 
"mint": "\uf30f ", // 
"opensuse": "\uf314 ", // 
"raspbian": "\uf315 ", // 
"ubuntu": "\uf31b ", // 
"windows": "\uf871 ", //  
"wsl": "\ue712 ", // 
"wsl_separator": " on "
},
"template": "{{ if .WSL }}  {{ end }}{{ if .Icon }}{{ .Icon }}{{ else }} {{ end }}",
"foreground": "yellow",
"background": "transparent", //"#252b32",
"style": "plain"
// "leading_diamond": "\ue0c3", // 
// "trailing_diamond": "\ue0c7", // 
// "powerline_symbol": "\ue0b8" // 
},
{
"type": "session",
"properties": {
"cache_duration": "none"
},
"template": " {{ if .SSHSession }}\uf817 {{ .UserName }}@{{ .HostName }}{{ end }} ",
"foreground": "#5e5e5e",
"background": "#00ffff",
"style": "diamond",
"leading_diamond": "\ue0be" // 
},
{
"type": "path",
"properties": {
"cache_duration": "none",
"folder_icon": "..",
"folder_separator_icon": "/",
"home_icon": "\uf7db ", // " "
"max_depth": 2,
"style": "agnoster"
},
"foreground": "#d2ff5e",
"background": "#003543",
"style": "diamond",
"leading_diamond": "\ue0be", // 
"powerline_symbol": "\ue0b8" // 
},
{
"type": "jujutsu",
"properties": {
"fetch_status": true,
"ignore_working_copy": false,
"native_fallback": true
},
"template": " \uf1fa {{.ChangeID}}{{if .Working.Changed}} \uf044 {{ .Working.String }}{{ end }} ",
"foreground": "#193549",
"background": "#ffeb3b",
"style": "powerline",
"powerline_symbol": "\ue0b8" // 
},
{
"type": "git",
"properties": {
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"disable_with_jj": true
},
"template": "{{ .UpstreamIcon }} {{ trunc 70 .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 }}  {{ .StashCount }}{{ end }}",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffe047{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}magenta{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#f17c37{{ end }}"
],
"foreground": "#193549",
"background": "#d2ff5e",
"style": "powerline",
"powerline_symbol": "\ue0b8" // 
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "python",
"properties": {
"cache_duration": "none",
"display_mode": "context",
"fetch_virtual_env": true
},
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }} {{ .Full }}{{ end }}",
"foreground": "#fff200",
"background": "#003544",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "go",
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " \ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"foreground": "black",
"background": "lightCyan",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "node",
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " \ue718 {{ .Full }} ",
"foreground": "#333333",
"background": "#66cc33",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "pnpm",
"template": " pnpm {{ .Full }} ",
"foreground": "#4e4e4e",
"background": "#F9AD00",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "bun",
"template": " bun {{ .Full }} ",
"foreground": "black",
"background": "white",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "deno",
"properties": {
"extensions": ["deno.json"]
},
"template": " 🦖 {{ .Full }} ", // 
"foreground": "#70ffaf",
"background": "transparent",
"style": "powerline",
"powerline_symbol": "\ue0b2",
"invert_powerline": true
},
{
"type": "dotnet",
"template": "  {{ .Full }} ",
"foreground": "#ffffff", // "black",
"background": "#5027d5", //"#00ffff",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "docker",
"properties": {
"cache_duration": "none"
},
"template": " \uf308 {{ .Context }} ",
"foreground": "#00d0ff",
"background": "#ffffff",
"powerline_symbol": "\ue0b2", // 
"style": "powerline",
"invert_powerline": true
},
{
"type": "status",
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"template": "{{ if gt .Code 0 }} ❌ {{ .Meaning }} {{ else }}{{ end }}",
"foreground": "white",
"background": "#990000",
"style": "powerline",
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
},
{
"type": "executiontime",
"properties": {
"cache_duration": "none",
"style": "roundrock",
"threshold": 0
},
"template": " {{ .FormattedMs }} ",
"foreground": "cyan", // "#3f3f3f",
"background": "#252b32", //"#ff9100",
"style": "diamond",
"trailing_diamond": "\ue0c8", // 
"powerline_symbol": "\ue0b2", // 
"invert_powerline": true
}
// {
// "type": "time",
// "properties": {
// "cache_duration": "none"
// },
// "template": " {{ .CurrentDate | date .Format }} \uf64f ",
// "foreground": "#3f3f3f",
// "background": "#00ffff",
// "powerline_symbol": "\ue0b2",
// "trailing_diamond": "\ue0c7",
// "style": "diamond",
// "invert_powerline": true
// }
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"properties": {
"cache_duration": "none"
},
"template": " ⚠️ ",
"foreground": "#FFD700",
"background": "red",
"style": "diamond",
"leading_diamond": "",
"trailing_diamond": "\ue0b0" // 
},
{
"type": "text",
"template": "{{if gt .Segment.Index 0}} {{ end }}⚡",
"foreground": "yellow",
"background": "transparent",
"style": "plain"
}
],
"newline": true
}
],
"version": 3,
"final_space": true,
"upgrade": {
"notice": true,
"interval": "168h",
"auto": false,
"source": "github"
}
}
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#252b32",
"foreground": "yellow",
// "powerline_symbol": "",
// "leading_diamond": "",
"properties": {
"alpine": " ",
"arch": " ",
"centos": " ",
"debian": " ",
"elementary": " ",
"fedora": " ",
"gentoo": " ",
"linux": " ",
"macos": " ",
"manjaro": " ",
"mint": " ",
"opensuse": " ",
"raspbian": " ",
"ubuntu": " ",
"windows": " ",
"wsl": " ",
"wsl_separator": " on "
},
"style": "diamond",
"template": " {{ if .WSL }}  {{ end }}{{.Icon}} ",
"type": "os"
},
{
"background": "#00ffff",
"foreground": "#5e5e5e",
"powerline_symbol": "",
"style": "powerline",
"template": " {{ if .SSHSession }} {{ .UserName }}@{{ .HostName }}{{ end }} ",
"type": "session"
},
{
"background": "#003543",
"foreground": "#d2ff5e",
"powerline_symbol": "",
"properties": {
"folder_icon": "..",
"folder_separator_icon": "/",
"home_icon": " ",
"max_depth": 2,
"style": "agnoster"
},
"style": "accordion",
"type": "path"
},
{
"background": "#d2ff5e",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffe047{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}magenta{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#f17c37{{ end }}"
],
"foreground": "#193549",
"powerline_symbol": "",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": "{{ .UpstreamIcon }}{{ trunc 64 .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
/* {
"background": "#f36943",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#33DD2D{{end}}",
"{{if eq \"Discharging\" .State.String}}#FFCD58{{end}}",
"{{if eq \"Full\" .State.String}}#0476d0{{end}}"
],
"foreground": "#242424",
"invert_powerline": true,
"powerline_symbol": "",
"style": "accordion",
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}%{{ end }}{{ .Error }} ",
"type": "battery",
"properties": {
"discharging_icon": " ",
"charging_icon": " ",
"not_charging_icon": " ",
"charged_icon": " "
}
}, */
{
"background": "#003544",
"foreground": "#fff200",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_mode": "context",
"fetch_virtual_env": true
},
"style": "powerline",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }} {{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "lightCyan",
"foreground": "black",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "ﳑ Go {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "go"
},
// {
// "background": "white",
// "foreground": "red",
// "invert_powerline": true,
// "powerline_symbol": "",
// "style": "powerline",
// "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
// "type": "java"
// },
{
"background": "#66cc33", //"#96ff1f",
"foreground": "#333333",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "  {{ .Full }} ",
"type": "node"
},
// {
// "background": "red",
// "foreground": "black",
// "invert_powerline": true,
// "powerline_symbol": "",
// "properties": {
// "display_mode": "files",
// "fetch_version": true
// },
// "style": "powerline",
// "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
// "type": "ruby"
// },
{
"background": "lightYellow",
"foreground": "black",
"invert_powerline": true,
"powerline_symbol": "",
"style": "powerline",
"template": " {{ .Context }}{{ if .Namespace }} :: {{ .Namespace }}{{ end }} ",
"type": "kubectl"
},
{
"type": "docker",
"style": "powerline",
"foreground": "#00d0ff",
"background": "#ffffff",
"template": "  {{ .Context }} ",
"invert_powerline": true,
"powerline_symbol": ""
},
{
"background": "#990000",
"foreground": "white",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": " {{ if gt .Code 0 }}❌ {{ .Meaning }}{{ else }}{{ end }} ", //
"type": "exit"
},
{
"background": "#ff9100",
"foreground": "#3f3f3f",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"style": "roundrock",
"threshold": 0
},
"style": "accordion",
"template": " {{ .FormattedMs }} ", //⌛
"type": "executiontime"
},
{
// "background": "#003543",
// "foreground": "#fff",
"background": "#00ffff",
"foreground": "#3f3f3f",
"invert_powerline": true,
"powerline_symbol": "",
"trailing_diamond": "", //",//"⛆",// "░",
"style": "diamond",
"template": " {{ .CurrentDate | date .Format }}  ",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "magenta",
"foreground": "#FFD700",
"powerline_symbol": "",
"style": "powerline",
"template": "🔓",
"type": "root"
},
{
"background": "transparent",
// "foreground": "#a6ff00",
"foreground": "yellow",
"powerline_symbol": "",
"trailing_diamond": "\ue0c7",
"leading_diamond": "\ue0c5",
"style": "diamond",
"template": " ⚡", //"\u2800",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Folder }} {{.UserName}}@{{.HostName}}",
"final_space": true,
"version": 2
}
@BoscoDomingo
Copy link
Author

BoscoDomingo commented Apr 18, 2023

Add eval "$(oh-my-posh init bash --config /path/to/niceDark.omp.json)" to .zshrc, .profile, .bashrc or any other file you use to load your shell config

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