Skip to content

Instantly share code, notes, and snippets.

@DubskySteam
Last active May 21, 2022 22:41
Show Gist options
  • Save DubskySteam/bdc2071ded20eddf7328aa5398bbf02a to your computer and use it in GitHub Desktop.
Save DubskySteam/bdc2071ded20eddf7328aa5398bbf02a to your computer and use it in GitHub Desktop.
Custom Oh-My-Posh theme. Mixed star /w space /w customs
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.Shell}} :: {{.Folder}}{{if .Root}} :: root{{end}}",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#00ff66",
"properties": {
"macos": "mac"
},
"style": "plain",
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}",
"type": "os"
},
{
"foreground": "#00ff66",
"style": "plain",
"template": " {{ .UserName}}@{{ .HostName}}: ",
"type": "session"
},
{
"foreground": "#55B9C4",
"properties": {
"style": "folder"
},
"style": "plain",
"template": "{{ path .Path .Location }} ",
"type": "path"
},
{
"foreground": "#fff700",
"properties": {
"fetch_status": true
},
"style": "plain",
"template": "<#ffffff>on</> {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
"type": "git"
},
{
"foreground": "#C94A16",
"style": "plain",
"template": "x ",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#906cff",
"style": "powerline",
"template": "[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}] ",
"type": "python"
},
{
"foreground": "#7FD5EA",
"style": "powerline",
"template": "[\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ",
"type": "go"
},
{
"foreground": "#76b367",
"style": "powerline",
"template": "[\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}] ",
"type": "node"
},
{
"foreground": "#f44336",
"style": "powerline",
"template": "[\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ",
"type": "ruby"
},
{
"foreground": "#ea2d2e",
"style": "powerline",
"template": "[\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ",
"type": "java"
},
{
"foreground": "#4063D8",
"style": "powerline",
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"foreground": "#689f38",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": " <#757575,>|</> {{ .CurrentDate | date .Format }}",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#63F08C",
"style": "plain",
"template": "\u279c ",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment