mirror of
https://github.com/bckelley/mybash.git
synced 2026-08-24 03:24:09 -05:00
121 lines
3.9 KiB
JSON
121 lines
3.9 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"console_title_template": "{{if .Root }}Administrator Console{{end}}{{if not .Root }}{{ .UserName }}{{end}} -- {{ .Folder }} | {{ .Shell }}",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"purple": "#A478A8",
|
|
"segments": [
|
|
{
|
|
"type": "nightscout",
|
|
"style":"plain",
|
|
"foreground":"#88c0d0",
|
|
"background":"#FF0000",
|
|
"background_templates": [
|
|
"{{ if gt .Sgv 150 }}#FFFF00{{ end }}",
|
|
"{{ if lt .Sgv 60 }}#FF0000{{ end }}",
|
|
"#00FF00"
|
|
],
|
|
"foreground_templates": [
|
|
"{{ if gt .Sgv 150 }}#000000{{ end }}",
|
|
"{{ if lt .Sgv 60 }}#000000{{ end }}",
|
|
"#000000"
|
|
],
|
|
"template": "<#5e81ac>\u250f[</> {{.Sgv}}{{.TrendIcon}}<#5e81ac>]</>",
|
|
"properties": {
|
|
"url": "https://YOURNIGHTSCOUTAPP.herokuapp.com/api/v1/entries.json?count=1&token=APITOKENFROMYOURADMIN",
|
|
"http_timeout": 1500
|
|
}
|
|
},
|
|
{
|
|
"foreground": "#88c0d0",
|
|
"style": "plain",
|
|
"template": "<#5e81ac>\u250f[\uf508</> {{ .UserName }}<#5e81ac>]</> from <#5e81ac>[\ufcbe</> {{ .HostName }}<#5e81ac>]</>",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"foreground": "#b48ead",
|
|
"properties": {
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true
|
|
},
|
|
"style": "plain",
|
|
"template": "<#5e81ac>--[</>{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}<#8fbcbb> \u25cf </>{{ end }}{{ if .Staging.Changed }}<#88c0d0> \u25cf </>{{ end }}<#5e81ac>]</>",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"template": "{{ if .SSHSession }}<#5e81ac>--[</> <#5e81ac>]</>{{ end }}",
|
|
"type":"session",
|
|
"style": "plain"
|
|
},
|
|
{
|
|
"foreground": "#b48ead",
|
|
"style": "plain",
|
|
"template": "<#5e81ac>--[</>{{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#5e81ac>]</>",
|
|
"type": "aws"
|
|
},
|
|
{
|
|
"foreground": "#b48ead",
|
|
"style": "plain",
|
|
"template": "<#5e81ac>--[</>{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#5e81ac>]</>",
|
|
"type": "kubectl"
|
|
},
|
|
{
|
|
"foreground": "#668B99",
|
|
"style": "plain",
|
|
"template": "{{ if .Root }}<#5e81ac>--[</> \uf0e7 <#5e81ac>]</>{{ end }}",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"foreground": "#d8dee9",
|
|
"style": "plain",
|
|
"template": "<#5e81ac>[x</>{{ reason .Code }}<#5e81ac>]</>",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#88c0d0",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "plain",
|
|
"template": "<#5e81ac>\u2516[</>{{ .Path }}<#5e81ac>]</>",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"foreground":"#88c0d0",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "plain",
|
|
"template": "<#5e81ac>[</>{{ if .Venv }}{{ .Venv }}{{ end }}<#5e81ac>]</>",
|
|
"type": "python"
|
|
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#5e81ac",
|
|
"style": "plain",
|
|
"template": " \ue602 ",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"final_space": true,
|
|
"version": 2
|
|
} |