Skip to content

Instantly share code, notes, and snippets.

@jacktose
Created March 11, 2024 22:20
Show Gist options
  • Save jacktose/8c8dcc8370ea8fb766707409c6ddcb5f to your computer and use it in GitHub Desktop.
Save jacktose/8c8dcc8370ea8fb766707409c6ddcb5f to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "p:black",
"background": "p:yellow",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b0",
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} "
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "p:white",
"background": "p:orange",
"template": " \uea83 {{ path .Path .Location }} ",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"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 }}"
],
"background": "p:green",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
"{{ if gt .Ahead 0 }}#49416D{{ end }}",
"{{ if gt .Behind 0 }}#7A306C{{ end }}"
],
"template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
"properties": {
"branch_max_length": 25,
"fetch_status": true,
"fetch_upstream_icon": true
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "p:white",
"background": "p:yellow",
"template": " \uf0e7 "
},
{
"type": "status",
"style": "diamond",
"foreground": "p:white",
"background": "p:blue",
"background_templates": [
"{{ if gt .Code 0 }}p:red{{ end }}"
],
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b4",
"template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ",
"properties": {
"always_enabled": true
}
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "node",
"style": "plain",
"foreground": "p:green",
"background": "transparent",
"template": "\ue718 ",
"properties": {
"display_mode": "files",
"fetch_package_manager": false,
"home_enabled": false
}
},
{
"type": "go",
"style": "plain",
"foreground": "p:blue",
"background": "transparent",
"template": "\ue626 ",
"properties": {
"fetch_version": false
}
},
{
"type": "python",
"style": "plain",
"foreground": "p:yellow",
"background": "transparent",
"template": "\ue235 ",
"properties": {
"display_mode": "files",
"fetch_version": false,
"fetch_virtual_env": false
}
},
{
"type": "shell",
"style": "plain",
"foreground": "p:white",
"background": "transparent",
"template": "in <p:blue><b>{{ .Name }}</b></> "
},
{
"type": "time",
"style": "plain",
"foreground": "p:white",
"background": "transparent",
"template": "at <p:blue><b>{{ .CurrentDate | date \"15:04:05\" }}</b></>"
}
]
}
],
"tooltips": [
{
"type": "aws",
"tips": [
"aws"
],
"style": "diamond",
"foreground": "p:white",
"background": "p:orange",
"leading_diamond": "\ue0b0",
"trailing_diamond": "\ue0b4",
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"properties": {
"display_default": true
}
},
{
"type": "az",
"tips": [
"az"
],
"style": "diamond",
"foreground": "p:white",
"background": "p:blue",
"leading_diamond": "\ue0b0",
"trailing_diamond": "\ue0b4",
"template": " \uebd8 {{ .Name }} ",
"properties": {
"display_default": true
}
}
],
"transient_prompt": {
"foreground": "p:black",
"background": "transparent",
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> "
},
"secondary_prompt": {
"foreground": "p:black",
"background": "transparent",
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> "
},
"palette": {
"black": "#262B44",
"blue": "#4B95E9",
"green": "#59C9A5",
"orange": "#F07623",
"red": "#D81E5B",
"white": "#E0DEF4",
"yellow": "#F3AE35"
}
}
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
type = 'session'
style = 'diamond'
foreground = 'p:black'
background = 'p:yellow'
leading_diamond = '\ue0b6'
trailing_diamond = '\ue0b0'
template = ' {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} '
[[blocks.segments]]
type = 'path'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = 'p:white'
background = 'p:orange'
template = ' \uea83 {{ path .Path .Location }} '
[blocks.segments.properties]
style = 'folder'
[[blocks.segments]]
type = 'git'
style = 'powerline'
powerline_symbol = '\ue0b0'
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 }}']
background = 'p:green'
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}', '{{ if gt .Ahead 0 }}#49416D{{ end }}', '{{ if gt .Behind 0 }}#7A306C{{ end }}']
template = ' {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} '
[blocks.segments.properties]
branch_max_length = 25
fetch_status = true
fetch_upstream_icon = true
[[blocks.segments]]
type = 'root'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = 'p:white'
background = 'p:yellow'
template = ' \uf0e7 '
[[blocks.segments]]
type = 'status'
style = 'diamond'
foreground = 'p:white'
background = 'p:blue'
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
leading_diamond = '<transparent,background>\ue0b0</>'
trailing_diamond = '\ue0b4'
template = ' {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} '
[blocks.segments.properties]
always_enabled = true
[[blocks]]
type = 'rprompt'
[[blocks.segments]]
type = 'node'
style = 'plain'
foreground = 'p:green'
background = 'transparent'
template = '\ue718 '
[blocks.segments.properties]
display_mode = 'files'
fetch_package_manager = false
home_enabled = false
[[blocks.segments]]
type = 'go'
style = 'plain'
foreground = 'p:blue'
background = 'transparent'
template = '\ue626 '
[blocks.segments.properties]
fetch_version = false
[[blocks.segments]]
type = 'python'
style = 'plain'
foreground = 'p:yellow'
background = 'transparent'
template = '\ue235 '
[blocks.segments.properties]
display_mode = 'files'
fetch_version = false
fetch_virtual_env = false
[[blocks.segments]]
type = 'shell'
style = 'plain'
foreground = 'p:white'
background = 'transparent'
template = 'in <p:blue><b>{{ .Name }}</b></> '
[[blocks.segments]]
type = 'time'
style = 'plain'
foreground = 'p:white'
background = 'transparent'
template = 'at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>'
[[tooltips]]
type = 'aws'
tips = ['aws']
style = 'diamond'
foreground = 'p:white'
background = 'p:orange'
leading_diamond = '\ue0b0'
trailing_diamond = '\ue0b4'
template = ' \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} '
[tooltips.properties]
display_default = true
[[tooltips]]
type = 'az'
tips = ['az']
style = 'diamond'
foreground = 'p:white'
background = 'p:blue'
leading_diamond = '\ue0b0'
trailing_diamond = '\ue0b4'
template = ' \uebd8 {{ .Name }} '
[tooltips.properties]
display_default = true
[transient_prompt]
foreground = 'p:black'
background = 'transparent'
template = '<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> '
[secondary_prompt]
foreground = 'p:black'
background = 'transparent'
template = '<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> '
[palette]
black = '#262B44'
blue = '#4B95E9'
green = '#59C9A5'
orange = '#F07623'
red = '#D81E5B'
white = '#E0DEF4'
yellow = '#F3AE35'
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 2
final_space: true
console_title_template: "{{ .Shell }} in {{ .Folder }}"
blocks:
- type: prompt
alignment: left
segments:
- type: session
style: diamond
foreground: p:black
background: p:yellow
leading_diamond: \ue0b6
trailing_diamond: \ue0b0
template: " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} "
- type: path
style: powerline
powerline_symbol: \ue0b0
foreground: p:white
background: p:orange
template: " \uea83 {{ path .Path .Location }} "
properties:
style: folder
- type: git
style: powerline
powerline_symbol: \ue0b0
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 }}"
background: p:green
background_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}"
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}"
- "{{ if gt .Ahead 0 }}#49416D{{ end }}"
- "{{ if gt .Behind 0 }}#7A306C{{ end }}"
template: " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} "
properties:
branch_max_length: 25
fetch_status: true
fetch_upstream_icon: true
- type: root
style: powerline
powerline_symbol: \ue0b0
foreground: p:white
background: p:yellow
template: " \uf0e7 "
- type: status
style: diamond
foreground: p:white
background: p:blue
background_templates:
- "{{ if gt .Code 0 }}p:red{{ end }}"
leading_diamond: <transparent,background>\ue0b0</>
trailing_diamond: \ue0b4
template: " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} "
properties:
always_enabled: true
- type: rprompt
segments:
- type: node
style: plain
foreground: p:green
background: transparent
template: "\ue718 "
properties:
display_mode: files
fetch_package_manager: false
home_enabled: false
- type: go
style: plain
foreground: p:blue
background: transparent
template: "\ue626 "
properties:
fetch_version: false
- type: python
style: plain
foreground: p:yellow
background: transparent
template: "\ue235 "
properties:
display_mode: files
fetch_version: false
fetch_virtual_env: false
- type: shell
style: plain
foreground: p:white
background: transparent
template: "in <p:blue><b>{{ .Name }}</b></> "
- type: time
style: plain
foreground: p:white
background: transparent
template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
tooltips:
- type: aws
tips:
- aws
style: diamond
foreground: p:white
background: p:orange
leading_diamond: \ue0b0
trailing_diamond: \ue0b4
template: " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} "
properties:
display_default: true
- type: az
tips:
- az
style: diamond
foreground: p:white
background: p:blue
leading_diamond: \ue0b0
trailing_diamond: \ue0b4
template: " \uebd8 {{ .Name }} "
properties:
display_default: true
transient_prompt:
foreground: p:black
background: transparent
template: "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> "
secondary_prompt:
foreground: p:black
background: transparent
template: "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> "
palette:
black: "#262B44"
blue: "#4B95E9"
green: "#59C9A5"
orange: "#F07623"
red: "#D81E5B"
white: "#E0DEF4"
yellow: "#F3AE35"
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
type = 'session'
style = 'diamond'
foreground = '#ffffff'
background = '#c386f1'
leading_diamond = '\ue0b6'
trailing_diamond = '\ue0b0'
template = ' {{ .UserName }} '
[[blocks.segments]]
type = 'path'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#ffffff'
background = '#ff479c'
template = ' \uea83 {{ .Path }} '
[blocks.segments.properties]
folder_separator_icon = ' \ue0b1 '
home_icon = '~'
style = 'folder'
[[blocks.segments]]
type = 'git'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#193549'
background = '#fffb38'
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}', '{{ if gt .Ahead 0 }}#B388FF{{ end }}', '{{ if gt .Behind 0 }}#B388FF{{ end }}']
leading_diamond = '\ue0b6'
trailing_diamond = '\ue0b4'
template = ' {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} '
[blocks.segments.properties]
branch_max_length = 25.0
fetch_stash_count = true
fetch_status = true
fetch_upstream_icon = true
[[blocks.segments]]
type = 'node'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#ffffff'
background = '#6CA35E'
template = ' \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} '
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]]
type = 'go'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#111111'
background = '#8ED1F7'
template = ' \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} '
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]]
type = 'julia'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#111111'
background = '#4063D8'
template = ' \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} '
[blocks.segments.properties]
fetch_version = true
[[blocks.segments]]
type = 'python'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#111111'
background = '#FFDE57'
template = ' \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} '
[blocks.segments.properties]
display_mode = 'files'
fetch_virtual_env = false
[[blocks.segments]]
type = 'ruby'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#ffffff'
background = '#AE1401'
template = ' \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} '
[blocks.segments.properties]
display_mode = 'files'
fetch_version = true
[[blocks.segments]]
type = 'azfunc'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#ffffff'
background = '#FEAC19'
template = ' \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} '
[blocks.segments.properties]
display_mode = 'files'
fetch_version = false
[[blocks.segments]]
type = 'aws'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#ffffff'
background_templates = ['{{if contains "default" .Profile}}#FFA400{{end}}', '{{if contains "jan" .Profile}}#f1184c{{end}}']
template = ' \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} '
[blocks.segments.properties]
display_default = false
[[blocks.segments]]
type = 'root'
style = 'powerline'
powerline_symbol = '\ue0b0'
foreground = '#111111'
background = '#ffff66'
template = ' \uf0ad '
[[blocks.segments]]
type = 'executiontime'
style = 'plain'
foreground = '#ffffff'
background = '#83769c'
template = '<transparent>\ue0b0</> \ueba2 {{ .FormattedMs }}\u2800'
[blocks.segments.properties]
always_enabled = true
[[blocks.segments]]
type = 'status'
style = 'diamond'
foreground = '#ffffff'
background = '#00897b'
background_templates = ['{{ if gt .Code 0 }}#e91e63{{ end }}']
trailing_diamond = '\ue0b4'
template = '<parentBackground>\ue0b0</> \ue23a '
[blocks.segments.properties]
always_enabled = true
[[blocks]]
type = 'rprompt'
[[blocks.segments]]
type = 'shell'
style = 'plain'
foreground = '#ffffff'
background = '#0077c2'
template = '<#0077c2,transparent>\ue0b6</> \uf489 {{ .Name }} <transparent,#0077c2>\ue0b2</>'
[[blocks.segments]]
type = 'ytm'
style = 'powerline'
powerline_symbol = '\ue0b2'
invert_powerline = true
foreground = '#111111'
background = '#1BD760'
template = ' \uf167 {{ .Icon }}{{ if ne .Status "stopped" }}{{ .Artist }} - {{ .Track }}{{ end }} '
[blocks.segments.properties]
paused_icon = '\uf04c '
playing_icon = '\uf04b '
[[blocks.segments]]
type = 'battery'
style = 'powerline'
powerline_symbol = '\ue0b2'
invert_powerline = true
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}}']
template = ' {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 '
[blocks.segments.properties]
charged_icon = '\ue22f '
charging_icon = '\ue234 '
discharging_icon = '\ue231 '
[[blocks.segments]]
type = 'time'
style = 'diamond'
invert_powerline = true
foreground = '#111111'
background = '#2e9599'
leading_diamond = '\ue0b2'
trailing_diamond = '\ue0b4'
template = ' {{ .CurrentDate | date .Format }} '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment