Skip to content

Instantly share code, notes, and snippets.

@SvenAelterman
Created February 23, 2023 14:55
Show Gist options
  • Save SvenAelterman/b8b39956763a148e24c2ec69f4b42ead to your computer and use it in GitHub Desktop.
Save SvenAelterman/b8b39956763a148e24c2ec69f4b42ead 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",
"segments": [
{
"background": "#0077c2",
"foreground": "#ffffff",
"leading_diamond": "",
"properties": {
"display_host": false
},
"style": "diamond",
"template": " {{ if .SSHSession }} {{ end }}{{ .UserName }} ",
"trailing_diamond": "",
"type": "session"
},
{
"style": "plain",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
},
{
"background": "#0CAA00",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"folder_separator_icon": "  ",
"home_icon": " ",
"style": "letter",
"mapped_locations": {
"C:/Users/svaelter/source": "  \ueac4",
"C:/Users/svaelter/source/repos": "  \ueac4  \uea63"
}
},
"style": "powerline",
"template": " {{ path .Path .Location }} ",
"type": "path"
},
{
"background": "#fffb38",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#f17c37{{ end }}",
"{{ if gt .Behind 0 }}#89d1dc{{ end }}"
],
"foreground": "#193549",
"powerline_symbol": "",
"properties": {
"branch_max_length": 10,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}}  {{ .WorktreeCount }}{{ end }} ",
"type": "git"
},
{
"background": "#6CA35E",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "  {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#8ED1F7",
"foreground": "#111111",
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": true,
"fetch_virtual_env": false
},
"style": "powerline",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "powerline",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "ruby"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": false
},
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "azfunc"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"display_id": false,
"display_name": true,
"info_separator": "@",
"source": "pwsh"
},
"style": "powerline",
"template": " {{ .Origin }}:{{ .Name }} ",
"type": "az"
},
{
"background": "#4CB4FF",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"display_id": false,
"display_name": true,
"info_separator": "@",
"source": "cli"
},
"style": "powerline",
"template": " {{ .Origin }}:{{ .Name }} ",
"type": "az"
},
{
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}"
],
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"display_default": false
},
"style": "powerline",
"template": "  {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#f00",
"powerline_symbol": "",
"properties": {
"root_icon": ""
},
"style": "powerline",
"template": "  ",
"type": "root"
},
{
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}#f1184c{{ end }}"
],
"foreground": "#ffffff",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": "  {{ if gt .Code 0 }}{{ else }}{{ end }}",
"trailing_diamond": "",
"type": "exit"
}
],
"type": "prompt"
},
{
"type": "rprompt",
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "p:white",
"background": "transparent",
"template": "{{ .CurrentDate | date .Format }}"
}
]
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 2,
"palette": {
"black": "#262B44",
"blue": "#4B95E9",
"green": "#59C9A5",
"orange": "#F07623",
"red": "#D81E5B",
"white": "#E0DEF4",
"yellow": "#F3AE35"
}
,
"transient_prompt": {
"foreground": "p:black",
"background": "transparent",
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> "
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment