Last active
August 30, 2024 03:22
-
-
Save SvenAelterman/b8b39956763a148e24c2ec69f4b42ead to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "p:user_host-back", | |
"foreground": "p:white", | |
"leading_diamond": "", | |
"properties": { | |
"display_host": true | |
}, | |
"style": "diamond", | |
"template": " {{ if .SSHSession }} {{ end }}{{ .UserName }}{{ if ne .HostName \"svaelter-sls2\" }}@{{ .HostName }}{{ end }} ", | |
"trailing_diamond": "", | |
"type": "session" | |
}, | |
{ | |
"style": "plain", | |
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", | |
"type": "os" | |
}, | |
{ | |
"background": "p:path-back", | |
"foreground": "p:white", | |
"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": "p:git-back-default", | |
"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": "p:git-fore", | |
"powerline_symbol": "", | |
"properties": { | |
"branch_max_length": 13, | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"template": " {{ .UpstreamIcon }} {{ .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}} \ueb4b {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} {{ .WorktreeCount }}{{ end }} ", | |
"type": "git" | |
}, | |
{ | |
"background": "p:node-back", | |
"foreground": "p:white", | |
"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": "p:white", | |
"powerline_symbol": "", | |
"properties": { | |
"display_id": false, | |
"display_name": true, | |
"info_separator": "@", | |
"source": "pwsh" | |
}, | |
"style": "powerline", | |
"template": " \uebd8 {{ if ne .ID .Segments.azcli.ID }} {{ .Origin }}:{{ end }}{{ .Name }} ", | |
"type": "az", | |
"alias": "azpwsh" | |
}, | |
{ | |
"background": "p:az-cli-back", | |
"foreground": "p:white", | |
"powerline_symbol": "", | |
"properties": { | |
"display_id": false, | |
"display_name": true, | |
"info_separator": "@", | |
"source": "cli" | |
}, | |
"style": "powerline", | |
"template": " \uebd8 {{ if ne .ID .Segments.azpwsh.ID }} {{ .Origin }}:{{ .Name }}{{ end }} ", | |
"type": "az", | |
"alias": "azcli" | |
}, | |
{ | |
"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": "p:root-back", | |
"foreground": "p:red", | |
"powerline_symbol": "", | |
"style": "powerline", | |
"template": " ", | |
"type": "root" | |
}, | |
{ | |
"background": "p:status-ok", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}p:status-error{{ end }}" | |
], | |
"foreground": "p:white", | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "diamond", | |
"template": " {{ if gt .Code 0 }}{{ else }}{{ end }}", | |
"trailing_diamond": "", | |
"type": "status" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"type": "rprompt", | |
"segments": [ | |
{ | |
"type": "time", | |
"style": "diamond", | |
"foreground": "p:white", | |
"background": "p:blue", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"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", | |
"status-error": "#f1184c", | |
"status-ok": "#2e9599", | |
"az-cli-back": "#4CB4FF", | |
"root-back": "#ffff66", | |
"user_host-back": "#0077c2", | |
"path-back": "#0CAA00", | |
"git-back-default": "#fffb38", | |
"git-fore": "#193549", | |
"node-back": "#6CA35E" | |
}, | |
"transient_prompt": { | |
"foreground": "p:black", | |
"background": "transparent", | |
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} - {{now | date \"15:04:05\"}} </><p:yellow,transparent>\ue0b0</> " | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment