Skip to content

Instantly share code, notes, and snippets.

@anacondaf
Created April 26, 2024 16:00
Show Gist options
  • Save anacondaf/27286edb2ec97cfae9736021b270d79f to your computer and use it in GitHub Desktop.
Save anacondaf/27286edb2ec97cfae9736021b270d79f to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#feae34",
"foreground": "#262b44",
"leading_diamond": "\ue0b6",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "..\ue5fe..",
"home_icon": "~",
"style": "agnoster_short"
},
"style": "diamond",
"template": " \ue5ff {{ .Path }} ",
"trailing_diamond": "\ue0b0",
"type": "path"
},
{
"background": "#fee761",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#f77622{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#e43b44{{ end }}",
"{{ if gt .Ahead 0 }}#2ce8f5{{ end }}",
"{{ if gt .Behind 0 }}#f77622{{ end }}"
],
"foreground": "#262b44",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#0095e9",
"background_templates": ["{{ if gt .Code 0 }}#ff0044{{ end }}"],
"foreground": "#ffffff",
"leading_diamond": "<transparent,background>\ue0b0</>",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": " \uf0e7 ",
"trailing_diamond": "",
"type": "status"
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#00ffff",
"template": " 󰘐 {{ .Full }} "
},
{
"type": "angular",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#1976d2",
"template": "  {{ .Full }} "
},
{
"type": "az",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#9ec3f0",
"template": "  {{ .EnvironmentName }}"
},
{
"type": "azfunc",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#FEAC19",
"template": "  {{ .Full }} ",
"properties": {
"fetch_version": true,
"display_mode": "files"
}
},
{
"type": "dart",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#06A4CE",
"template": "  {{ .Full }} "
},
{
"type": "go",
"style": "powerline",
"foreground": "#ffffff",
"background": "#7FD5EA",
"template": " 󰟓 {{ .Full }} "
},
{
"type": "kubectl",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ebcc34",
"template": " ﴱ {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ",
"properties": {
"context_aliases": {
"arn:aws:eks:eu-west-1:1234567890:cluster/posh": "posh"
}
}
},
{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ebcc34",
"template": "{{.WorkspaceName}}"
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#8800dd",
"template": " <#fefefe></> {{ .FormattedMs }} ",
"properties": {
"threshold": 500,
"style": "austin",
"always_enabled": true
}
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#FEAE34",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": "{{ .CurrentDate | date .Format }} ",
"type": "time"
},
{
"foreground": "#3DC650",
"style": "plain",
"template": "\u276f",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment