Skip to content

Instantly share code, notes, and snippets.

@luixal
Last active January 18, 2022 18:50
Show Gist options
  • Save luixal/72a62a6f6655c7fc3d46e66a7d4c75f8 to your computer and use it in GitHub Desktop.
Save luixal/72a62a6f6655c7fc3d46e66a7d4c75f8 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#000000",
"background": "#d3d7cf"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#e4e4e4",
"background": "#3465a4",
"properties": {
"prefix": " \uF07C ",
"home_icon": "~",
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#4e9a06",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#4e9a06{{ end }}"
],
"properties": {
"branch_icon": "\uF126 ",
"fetch_stash_count": true,
"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 }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
}
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "node",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#689f63",
"properties": {
"postfix": " \uF898 ",
"display_version": true
}
},
{
"type": "go",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#00acd7",
"properties": {
"postfix": " \uE627 ",
"display_version": true
}
},
{
"type": "julia",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#4063D8",
"properties": {
"postfix": " \uE624 ",
"display_version": true
}
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#FFDE57",
"properties": {
"postfix": " \uE235 ",
"display_mode": "files",
"fetch_virtual_env": false,
"template": "{{ .Full }}"
}
},
{
"type": "ruby",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#AE1401",
"properties": {
"postfix": " \uE791 ",
"display_version": true,
"display_mode": "files"
}
},
{
"type": "azfunc",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#FEAC19",
"properties": {
"postfix": " \uf0e7",
"display_version": false,
"display_mode": "files"
}
},
{
"type": "aws",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"properties": {
"postfix": " \uE7AD ",
"display_default": false
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#ffff66",
"properties": {
"root_icon": "\uF0AD"
}
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#000000",
"background": "#c4a000",
"properties": {
"postfix": " \uF252 "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#d3d7cf",
"background": "#000000",
"background_templates": ["{{ if gt .Code 0 }}#cc2222{{ end }}"],
"properties": {
"always_enabled": true,
"template": "{{ if gt .Code 0 }}{{ .Text }}{{ else }}✔{{ end }}"
}
},
{
"type": "time",
"style": "diamond",
"invert_powerline": true,
"background": "#d3d7cf",
"foreground": "#000000",
"properties": {
"postfix": " \uF017 "
}
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.User}}@{{.Host}} in {{ .Folder }}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment