mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Remove folder and (most) OS icons, clean up colors
Now, the OS icon is only rendered when in a WSL environment as it isn't that useful or easy to read the rest of the time. The folder icon was removed from the path part of the prompt because it, too, was hard to read and served no helpful purpose. Colors were cleaned up so that names are used everywhere and unused bits were removed.
This commit is contained in:
parent
a91b4a84ea
commit
badf0988a2
1 changed files with 13 additions and 23 deletions
|
|
@ -17,14 +17,10 @@
|
||||||
"kubectl-bg": "transparent",
|
"kubectl-bg": "transparent",
|
||||||
"status-fg-okay": "#00ff00",
|
"status-fg-okay": "#00ff00",
|
||||||
"status-fg-error": "#D81E5B",
|
"status-fg-error": "#D81E5B",
|
||||||
|
"tooltip-fg": "#E0DEF4",
|
||||||
|
"tooltip-az-bg": "#4B95E9",
|
||||||
"secondary-fg": "#00ff00",
|
"secondary-fg": "#00ff00",
|
||||||
|
"orange-text": "#ff8800"
|
||||||
|
|
||||||
|
|
||||||
"blue": "#4B95E9",
|
|
||||||
"orange": "#F07623",
|
|
||||||
"white": "#E0DEF4",
|
|
||||||
"yellow": "#F3AE35"
|
|
||||||
},
|
},
|
||||||
"blocks": [
|
"blocks": [
|
||||||
{
|
{
|
||||||
|
|
@ -46,24 +42,18 @@
|
||||||
"type": "session",
|
"type": "session",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "p:hostname",
|
"foreground": "p:hostname",
|
||||||
"template": " {{ (split \".\" .HostName)._0 }}("
|
"template": " {{ (split \".\" .HostName)._0 }}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "os",
|
"type": "os",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"template": "{{ if .WSL }}WSL {{ end }}{{.Icon}}"
|
"template": "{{ if .WSL }}<p:hostname>(</>WSL {{.Icon}}<p:hostname>)</>{{ end }}"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "session",
|
|
||||||
"style": "plain",
|
|
||||||
"foreground": "p:hostname",
|
|
||||||
"template": "):"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "p:pwd",
|
"foreground": "p:pwd",
|
||||||
"template": " \uea83 {{ path .Path .Location }}",
|
"template": " {{ path .Path .Location }}",
|
||||||
"properties": {
|
"properties": {
|
||||||
"folder_separator_icon": "/",
|
"folder_separator_icon": "/",
|
||||||
"style": "full"
|
"style": "full"
|
||||||
|
|
@ -75,7 +65,7 @@
|
||||||
"powerline_symbol": "\uE0B0",
|
"powerline_symbol": "\uE0B0",
|
||||||
"foreground": "p:kubectl-fg",
|
"foreground": "p:kubectl-fg",
|
||||||
"background": "p:kubectl-bg",
|
"background": "p:kubectl-bg",
|
||||||
"template": " <#ff8800>(</>\uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#ff8800>)</>"
|
"template": " <p:orange-text>(</>\uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<p:orange-text>)</>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -87,7 +77,7 @@
|
||||||
"{{ if gt .Ahead 0 }}p:git-fg-ahead{{ end }}",
|
"{{ if gt .Ahead 0 }}p:git-fg-ahead{{ end }}",
|
||||||
"{{ if gt .Behind 0 }}p:git-fg-behind{{ end }}"
|
"{{ if gt .Behind 0 }}p:git-fg-behind{{ end }}"
|
||||||
],
|
],
|
||||||
"template": " <#ff8800>on</> {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ url .HEAD .Kraken }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}",
|
"template": " <p:orange-text>on</> {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ url .HEAD .Kraken }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}",
|
||||||
"properties": {
|
"properties": {
|
||||||
"branch_max_length": 25,
|
"branch_max_length": 25,
|
||||||
"fetch_stash_count": true,
|
"fetch_stash_count": true,
|
||||||
|
|
@ -102,7 +92,7 @@
|
||||||
"foreground_templates": [
|
"foreground_templates": [
|
||||||
"{{ if (.Working.Changed) }}p:svn-fg-changed{{ end }}"
|
"{{ if (.Working.Changed) }}p:svn-fg-changed{{ end }}"
|
||||||
],
|
],
|
||||||
"template": " <#ff8800>on svn</> \ue0a0{{.Branch}} r{{.BaseRev}}{{ if .Working.Changed }} \uf044 {{.Working.String}}{{ end }}",
|
"template": " <p:orange-text>on svn</> \ue0a0{{.Branch}} r{{.BaseRev}}{{ if .Working.Changed }} \uf044 {{.Working.String}}{{ end }}",
|
||||||
"properties": {
|
"properties": {
|
||||||
"fetch_status": true
|
"fetch_status": true
|
||||||
}
|
}
|
||||||
|
|
@ -142,8 +132,8 @@
|
||||||
"aws"
|
"aws"
|
||||||
],
|
],
|
||||||
"style": "diamond",
|
"style": "diamond",
|
||||||
"foreground": "p:white",
|
"foreground": "p:tooltip-fg",
|
||||||
"background": "p:orange",
|
"background": "p:orange-text",
|
||||||
"leading_diamond": "\ue0b0",
|
"leading_diamond": "\ue0b0",
|
||||||
"trailing_diamond": "\ue0b4",
|
"trailing_diamond": "\ue0b4",
|
||||||
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
|
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
|
||||||
|
|
@ -157,8 +147,8 @@
|
||||||
"az"
|
"az"
|
||||||
],
|
],
|
||||||
"style": "diamond",
|
"style": "diamond",
|
||||||
"foreground": "p:white",
|
"foreground": "p:tooltip-fg",
|
||||||
"background": "p:blue",
|
"background": "p:tooltip-az-bg",
|
||||||
"leading_diamond": "\ue0b0",
|
"leading_diamond": "\ue0b0",
|
||||||
"trailing_diamond": "\ue0b4",
|
"trailing_diamond": "\ue0b4",
|
||||||
"template": " \uebd8 {{ .Name }} ",
|
"template": " \uebd8 {{ .Name }} ",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue