Skip to content

Instantly share code, notes, and snippets.

@justanindieguy
Last active December 18, 2023 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justanindieguy/00377fd8c5237e22d5e17ecaa03dca78 to your computer and use it in GitHub Desktop.
Save justanindieguy/00377fd8c5237e22d5e17ecaa03dca78 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",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "p:yellow",
"foreground": "p:black",
"leading_diamond": "",
"powerline_symbol": "",
"properties": {
"folder_separator_icon": "  ",
"home_icon": "󰋜",
"style": "folder"
},
"style": "diamond",
"template": "  {{ .Path }} ",
"trailing_diamond": "",
"type": "path"
},
{
"background": "p:green",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:brightYellow{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
"{{ if gt .Ahead 0 }}p:purple{{ end }}",
"{{ if gt .Behind 0 }}p:brightPurple{{ end }}"
],
"foreground": "p:black",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}",
"{{ if gt .Ahead 0 }}p:white{{ end }}"
],
"powerline_symbol": "",
"properties": {
"branch_max_length": 25,
"fetch_status": true,
"fetch_upstream_icon": true,
"github_icon": "󰊤"
},
"style": "powerline",
"template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} ",
"type": "git"
},
{
"background": "p:white",
"background_templates": ["{{ if gt .Code 0 }}#E95420{{ end }}"],
"foreground": "p:black",
"leading_diamond": "<transparent,background></>",
"properties": {
"windows": "󰖳"
},
"style": "diamond",
"template": " {{ if .WSL }}WSL at {{ end }}{{ .Icon }} ",
"trailing_diamond": "",
"type": "os"
}
],
"type": "prompt"
},
{
"segments": [
{
"background": "transparent",
"foreground": "p:green",
"properties": {
"display_mode": "files",
"fetch_package_manager": false,
"home_enabled": false
},
"style": "plain",
"template": "󰎙 ",
"type": "node"
},
{
"background": "transparent",
"foreground": "p:blue",
"properties": {
"fetch_version": false
},
"style": "powerline",
"template": " ",
"type": "go"
},
{
"background": "transparent",
"foreground": "p:yellow",
"properties": {
"display_mode": "files",
"fetch_version": true,
"fetch_virtual_env": false
},
"style": "plain",
"template": " ",
"type": "python"
},
{
"background": "transparent",
"foreground": "p:white",
"style": "plain",
"template": "in <p:brightCyan><b>{{ .Name }}</b></> ",
"type": "shell"
},
{
"background": "transparent",
"foreground": "p:white",
"style": "plain",
"template": "at <p:brightCyan><b>{{ .CurrentDate | date \"15:04:05\" }}</b></>",
"type": "time"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "p:brightGreen",
"style": "plain",
"template": "󰋇 ",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"palette": {
"black": "#1F1F28",
"red": "#E82424",
"green": "#76946A",
"yellow": "#FF9E3B",
"blue": "#658594",
"purple": "#957FB8",
"cyan": "#9CABCA",
"white": "#DCD7BA",
"brightBlack": "#2A2A37",
"brightRed": "#FF5D62",
"brightGreen": "#98BB6C",
"brightYellow": "#E6C384",
"brightBlue": "#7FB4CA",
"brightPurple": "#D27E99",
"brightCyan": "#A3D4D5",
"brightWhite": "#DCD7BA"
},
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment