=various edits and improvments

This commit is contained in:
Gal Szkolnik 2022-09-21 01:54:10 -04:00
parent 71e8da7289
commit f38f61cc6d
6 changed files with 230 additions and 191 deletions

View file

@ -15,29 +15,95 @@
],
"foreground": "#000000",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"leading_diamond": "▓",
"properties": {
"branch_icon": "\uf126 ",
"branch_icon": " ",
"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 }}",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}",
"type": "git"
},
{
},
{
"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",
"powerline_symbol": "\ue0b0",
"powerline_symbol": "",
"style": "powerline",
"type": "text",
"template": "{{ if .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }} \ue7b2 {{ .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }} {{ end }}"
},
{
"template": "{{ if .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }}  {{ .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }} {{ end }}"
},
{
"style": "plain",
"type": "text",
"template": " "
}
"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"
}
]
},
{
@ -48,7 +114,7 @@
"background": "#d3d7cf",
"foreground": "#000000",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"leading_diamond": "▓",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
},
@ -59,7 +125,7 @@
"background_templates": [
"{{ if contains \"running\" .Output }}#FFA400{{ end }}"
],
"powerline_symbol": "\ue0b0",
"powerline_symbol": "",
"style": "powerline",
"properties": {
"shell": "bash",
@ -70,26 +136,26 @@
{
"background": "#3465a4",
"foreground": "#e4e4e4",
"powerline_symbol": "\ue0b0",
"powerline_symbol": "",
"properties": {
"home_icon": "\ufd24",
"mixed_threshold": 3,
"home_icon": "",
"mixed_threshold": 3,
"style": "agnoster_full",
"folder_separator_icon": "\ue0b5",
"folder_separator_icon": "",
"folder_separator_template": "",
"mapped_locations": {
"/": "\ue299/",
"/srv": "\uf98a",
"/srv/containeriszed/docker-compose": "\uf308",
"~/_pqb": "\ufab4",
"~/_pqb/code": "\ufab4\ue796",
"~/_pqb/code/slurm/moe-access": "\ue3bf\uf2c2",
"~/_pqb/code/slurm": "\uf1b0",
"~/_pqb/code/slurm/pqb-terraform": "\uf1b0\ufa08"
"/": "/",
"/srv": "力",
"/srv/containeriszed/docker-compose": "",
"~/_pqb": "華",
"~/_pqb/code": "華",
"~/_pqb/code/slurm/moe-access": "",
"~/_pqb/code/slurm": "",
"~/_pqb/code/slurm/pqb-terraform": "行"
}
},
"style": "powerline",
"template": " \uf07c {{ .Path }} ",
"template": " {{ .Path }} ",
"type": "path"
}
],
@ -102,75 +168,75 @@
"background": "#689f63",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \uf898 ",
"template": "{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#00acd7",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 ",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue624 ",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_virtual_env": false
},
"style": "powerline",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue235 ",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "powerline",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue791 ",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "ruby"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"fetch_version": false
},
"style": "powerline",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7",
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "azfunc"
},
{
@ -180,30 +246,30 @@
],
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"display_default": false
},
"style": "powerline",
"template": "{{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} \ue7ad ",
"template": "{{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"style": "powerline",
"template": "\uf0ad ",
"template": " ",
"type": "root"
},
{
"background": "#c4a000",
"foreground": "#000000",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"style": "powerline",
"template": "{{ .FormattedMs }} \uf252 ",
"template": "{{ .FormattedMs }} ",
"type": "executiontime"
},
{
@ -213,12 +279,12 @@
],
"foreground": "#d3d7cf",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}\u2714{{ end }} ",
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}{{ end }} ",
"type": "exit"
},
{
@ -232,9 +298,9 @@
},
"invert_powerline": true,
"style": "powerline",
"powerline_symbol": "\ue0b2",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}></>{{ .UserName }}{{ if .Root }}!{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}></> \uf2bd ",
"trailing_diamond": "\ue0b0\u2500\u256e",
"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"
},
{
@ -248,7 +314,7 @@
],
"invert_powerline": true,
"style": "powerline",
"powerline_symbol": "\ue0b2",
"powerline_symbol": "",
"template": "sw{{ printf \"%.0f%%\" .SwapPercentUsed }}",
"type": "sysinfo"
},
@ -257,8 +323,8 @@
"foreground": "#000000",
"invert_powerline": true,
"style": "diamond",
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
"trailing_diamond": "\u2593\ue0c6",
"template": " {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "▓",
"type": "time"
}
],
@ -271,22 +337,22 @@
{
"type": "shell",
"style": "diamond",
"leading_diamond": "\ue0c7",
"trailing_diamond": "\uE0B0",
"template": "{{ .Name }}",
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .Name }}",
"foreground": "#ffffff",
"background": "#000000",
"background_templates": [
"{{ if contains \"z\ue7a2\" .Name }}#29315a{{ end }}",
"{{ if contains \"b\ue7a2\" .Name }}#424242{{ end }}",
"{{ if contains \"\uf489\" .Name }}#0037da{{ end }}"
"{{ if contains \"z\" .Name }}#29315a{{ end }}",
"{{ if contains \"b\" .Name }}#424242{{ end }}",
"{{ if contains \"\" .Name }}#0037da{{ end }}"
],
"properties": {
"mapped_shell_names": {
"powershell": " \uf489",
"pwsh": " \uf489",
"bash": "b\ue7a2",
"zsh": "z\ue7a2"
"powershell": " ",
"pwsh": " ",
"bash": "b",
"zsh": "z"
}
}
}