Skip to content

Instantly share code, notes, and snippets.

@Wuvist
Created February 3, 2024 15:46
Show Gist options
  • Save Wuvist/8b51f08a5c17f09ffaf331ddc3009c9b to your computer and use it in GitHub Desktop.
Save Wuvist/8b51f08a5c17f09ffaf331ddc3009c9b to your computer and use it in GitHub Desktop.
Modified blue-owl theme for ohmyposh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#a313a8",
"foreground": "#FFEB3B",
"style": "plain",
"template": "\u26a1 ",
"type": "root"
},
{
"background": "transparent",
"foreground": "#ffffff",
"style": "plain",
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
},
{
"background": "#01579B",
"foreground": "#ffffff",
"leading_diamond": "<transparent,#01579B>\ue0b0</>",
"properties": {
"folder_icon": "...",
"folder_separator_icon": "<transparent> \ue0bd </>",
"home_icon": "\ue617",
"style": "agnoster_short"
},
"style": "diamond",
"template": " {{ .Path }} ",
"trailing_diamond": "\ue0b0",
"type": "path"
},
{
"background": "#00C853",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true
},
"style": "powerline",
"template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#8ED1F7",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_virtual_env": false
},
"style": "powerline",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "powerline",
"template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "ruby"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_version": false
},
"style": "powerline",
"template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "azfunc"
},
{
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_default": false
},
"style": "powerline",
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"type": "aws"
},
{
"background": "#49404f",
"foreground": "#ffffff",
"leading_diamond": "<transparent,#49404f>\ue0b0</>",
"properties": {
"style": "austin",
"threshold": 10
},
"style": "diamond",
"template": " \uf252 {{ .FormattedMs }} ",
"trailing_diamond": "\ue0b0",
"type": "executiontime"
},
{
"background": "#910000",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": "<transparent> \uf12a</> {{ reason .Code }} ",
"type": "status"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"background": "#29315A",
"foreground": "#43CCEA",
"leading_diamond": "\ue0c5",
"style": "diamond",
"template": " {{ .UserName }}<transparent> / </>{{ .HostName }}",
"type": "session"
},
{
"background": "#29315A",
"foreground": "#3EC669",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": "<transparent> \ue0ba\ue0bc </>{{ .CurrentDate | date .Format }} ",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#ffffff",
"foreground_templates": [
"{{ if gt .Code 0 }}#ff0000{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "\u276f ",
"type": "status"
}
],
"type": "prompt"
}
],
"console_title_template": "{{if .Root}} \u26a1 {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.HostName}}",
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment