Skip to content

Instantly share code, notes, and snippets.

@itoleck
Last active December 4, 2021 07:43
Show Gist options
  • Save itoleck/5d88b32ab9a9f6a6d3f70cd741919421 to your computer and use it in GitHub Desktop.
Save itoleck/5d88b32ab9a9f6a6d3f70cd741919421 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"transient_prompt": {
"background": "transparent",
"foreground": "#ffffff",
"template": "{{ .Shell }}> "
},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "kubectl",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ffea00",
"properties": {
"prefix": " \uFD31",
"template": " {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}"
}
},
{
"type": "az",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"trailing_diamond": "\uE0B0",
"foreground": "#000000",
"background": "#008AD7",
"properties": {
"template": " Connected to Cloud -> {{ .ID }} : {{.Name}}",
"prefix": " \uFD03"
}
},
{
"type": "aws",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"chad\" .Profile}}#f1184c{{end}}"
],
"properties": {
"prefix": " \uE7AD ",
"display_default": false
}
},
{
"type": "battery",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#f36943",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
],
"properties": {
"discharging_icon": " ",
"charging_icon": " ",
"charged_icon": " ",
"postfix": " "
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#9A348E",
"leading_diamond": "\ue0c7\u2593",
"trailing_diamond": "",
"properties": {
"prefix": "",
"display_host": true
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#011627",
"background": "#FFFB38",
"properties": {
"prefix": "  ",
"home_icon": "~",
"folder_separator_icon": "\uE0b1",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#f1502f",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
"{{ if gt .Ahead 0 }}#C792EA{{ end }}",
"{{ if gt .Behind 0 }}#C792EA{{ end }}"
],
"properties": {
"branch_icon": "\ue725 ",
"fetch_status": true,
"fetch_upstream_icon": true,
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uF046 {{ .Staging.String }}</>{{ end }}"
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#00ffff",
"properties": {
"prefix": " \uE77F "
}
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#111111",
"background": "#FFDE57",
"properties": {
"prefix": " \uE235 ",
"display_version": true,
"display_mode": "files",
"display_virtual_env": false
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#86BBD8",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#83769c",
"properties": {
"always_enabled": true,
"prefix": " ",
"postfix": ""
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"background": "#2e6099",
"foreground": "#ffffff"
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#00897b",
"background_templates": ["{{ if gt .Code 0 }}#e91e63{{ end }}"],
"properties": {
"always_enabled": true,
"template": " \uE23A",
"prefix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"prefix": "  ",
"postfix": ""
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment