dotfiles.2022/_home/private_dot_poshtheme.omp.json

385 lines
12 KiB
JSON
Raw Normal View History

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"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 }}"
],
"foreground": "#000000",
"style": "diamond",
2022-09-21 05:54:10 +00:00
"leading_diamond": "▓",
"properties": {
2022-09-21 05:54:10 +00:00
"branch_icon": " ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
2022-09-21 05:54:10 +00:00
"template": " {{ .UpstreamIcon }}{{ .HEAD }}",
"type": "git"
2022-09-21 05:54:10 +00:00
},
{
"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 }}"
],
"foreground": "#000000",
"powerline_symbol": "",
"style": "powerline",
"leading_diamond": "▓",
"trailing_diamond": "|",
"properties": {
"branch_icon": " ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": "{{ .BranchStatus }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#d3d7cf",
"foreground": "#000000",
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"style": "powerline",
"type": "text",
2022-09-21 05:54:10 +00:00
"template": "{{ if .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }}  {{ .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }} {{ end }}"
},
{
"style": "plain",
"type": "text",
2022-09-21 05:54:10 +00:00
"template": " "
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "command",
"foreground": "#d3d7cf",
"foreground_templates": [
"{{ if contains \"true\" .Output }}#000000{{ end }}"
],
"background": "red",
"background_templates": [
"{{ if contains \"true\" .Output }}#DD7700{{ end }}"
],
"powerline_symbol": "",
"invert_powerline": true,
"style": "powerline",
"properties": {
"shell": "bash",
"command": "type -t direnv *>/dev/null && { direnv status *>&1 || true; } | grep \"Found RC allowed\"; true"
},
"template": "."
},
{
"type": "command",
"foreground": "#d3d7cf",
"foreground_templates": [
"{{ if contains \"true\" .Output }}#000000{{ end }}"
],
"background": "red",
"background_templates": [
"{{ if contains \"true\" .Output }}#DD7700{{ end }}"
],
"invert_powerline": true,
"style": "diamond",
"trailing_diamond": "▓",
"properties": {
"shell": "bash",
"command": "type -t direnv *>/dev/null && { direnv status *>&1 || true; } | grep \"Found RC allowed\"; true"
},
"template": "envrc"
}
]
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#d3d7cf",
"foreground": "#000000",
"style": "diamond",
2022-09-21 05:54:10 +00:00
"leading_diamond": "▓",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
},
{
"type": "command",
"foreground": "#d3d7cf",
"background": "red",
"background_templates": [
"{{ if contains \"running\" .Output }}#FFA400{{ end }}"
],
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"style": "powerline",
"properties": {
"shell": "bash",
2022-08-26 18:13:42 +00:00
"command": "'[[ -n \"$(type -t systemctl)\" ]] && systemctl is-system-running || true'"
},
"template": "{{ if not (contains \"running\" .Output) }} {{ .Output }} {{ end }}"
},
{
"background": "#3465a4",
"foreground": "#e4e4e4",
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
2022-09-21 05:54:10 +00:00
"home_icon": "ﴤ",
"mixed_threshold": 3,
"style": "agnoster_full",
2022-09-21 05:54:10 +00:00
"folder_separator_icon": "",
"folder_separator_template": "",
"mapped_locations": {
2022-09-21 05:54:10 +00:00
"/": "/",
"/srv": "力",
"/srv/containeriszed/docker-compose": "",
"~/_pqb": "華",
"~/_pqb/code": "華",
"~/_pqb/code/slurm/moe-access": "",
"~/_pqb/code/slurm": "",
"~/_pqb/code/slurm/pqb-terraform": "行"
}
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "  {{ .Path }} ",
"type": "path"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"background": "#689f63",
"foreground": "#ffffff",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}  ",
"type": "node"
},
{
"background": "#00acd7",
"foreground": "#111111",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  ",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_virtual_env": false
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  ",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  ",
"type": "ruby"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": false
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "azfunc"
},
{
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"foreground": "#ffffff",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"display_default": false
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }}  ",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#111111",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": " ",
"type": "root"
},
{
"background": "#c4a000",
"foreground": "#000000",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ .FormattedMs }}  ",
"type": "executiontime"
},
{
"background": "#000000",
"background_templates": [
"{{ if gt .Code 0 }}#cc2222{{ end }}"
],
"foreground": "#d3d7cf",
"invert_powerline": true,
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"properties": {
"always_enabled": true
},
"style": "powerline",
2022-09-21 05:54:10 +00:00
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}✔{{ end }} ",
"type": "exit"
},
{
"type": "command",
"foreground": "",
"foreground_templates": [
"{{ if eq .Output \"0,0\" }}#DD7700{{else}}#d3d7cf{{ end }}"
],
"background_templates": [
"{{ if eq .Output \"0,0\" }}#000000{{else}}#DD7700{{ end }}"
],
"powerline_symbol": "",
"invert_powerline": true,
"style": "powerline",
"properties": {
"shell": "bash",
"command": "type -t chezmoi 2>&1 >/dev/null && printf \"%s\" $(chezmoi status 2>/dev/null | wc -l) , $(chezmoi git -- status --short | wc -l)"
},
"template": "{{ if ne .Output \"0,0\" }}≢{{ .Output }}{{ end }}"
},
{
"background": "#4063D8",
"background_templates": [
"{{ if .Root }}lightRed{{ end }}"
],
"foreground": "#d3d7cf",
"properties": {
"display_host": true
},
"invert_powerline": true,
"style": "powerline",
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}></>{{ .UserName }}{{ if .Root }}!{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}></>  ",
"trailing_diamond": "─╮",
"type": "session"
},
2022-06-09 18:23:05 +00:00
{
"background": "#81ff91",
"background_templates": [
"{{ if gt .SwapPercentUsed 90.0 }}red{{ else if gt .SwapPercentUsed 75.0 }}lightRed{{ end }}"
],
"foreground": "#000000",
"foreground_templates": [
"{{ if gt .SwapPercentUsed 90.0 }}#d3d7cf{{ end }}"
],
"invert_powerline": true,
"style": "powerline",
2022-09-21 05:54:10 +00:00
"powerline_symbol": "",
2022-06-09 18:23:05 +00:00
"template": "sw{{ printf \"%.0f%%\" .SwapPercentUsed }}",
"type": "sysinfo"
},
{
"background": "#d3d7cf",
"foreground": "#000000",
"invert_powerline": true,
"style": "diamond",
2022-09-21 05:54:10 +00:00
"template": " {{ .CurrentDate | date .Format }}  ",
"trailing_diamond": "▓",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
2022-06-20 02:43:54 +00:00
"type": "shell",
"style": "diamond",
2022-09-21 05:54:10 +00:00
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .Name }}",
2022-06-20 02:43:54 +00:00
"foreground": "#ffffff",
"background": "#000000",
"background_templates": [
2022-09-21 05:54:10 +00:00
"{{ if contains \"z\" .Name }}#29315a{{ end }}",
"{{ if contains \"b\" .Name }}#424242{{ end }}",
"{{ if contains \"\" .Name }}#0037da{{ end }}"
2022-06-20 02:43:54 +00:00
],
"properties": {
"mapped_shell_names": {
2022-09-21 05:54:10 +00:00
"powershell": " ",
"pwsh": " ",
"bash": "b",
"zsh": "z"
2022-06-20 02:43:54 +00:00
}
}
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 2
}