theme: update night-owl

- Added custom title bar
- Changed home & folder icon
- Changed background_template colors in git segment
- Added fetch_stash_count & fetch_worktree_count
- Changed template properties in git segment
- Added shell segment
- Changed style of the right prompt
- Added transient_prompt
This commit is contained in:
Jul Guga 2021-11-21 14:43:05 +01:00 committed by Jan De Dobbeleer
parent accf46420f
commit 0247b329c1

View file

@ -2,6 +2,9 @@
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Folder }}",
"blocks": [
{
"type": "prompt",
@ -39,8 +42,8 @@
"background": "#82AAFF",
"properties": {
"folder_separator_icon": " <#011627>\uE0B1</> ",
"home_icon": "\uf46d ",
"folder_icon": "\uf115 ",
"home_icon": "\uf7db ",
"folder_icon": "\uf07c ",
"style": "agnoster",
"enable_hyperlink": true
}
@ -52,23 +55,25 @@
"foreground": "#011627",
"background": "#22da6e",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
"{{ if gt .Ahead 0 }}#C792EA{{ end }}",
"{{ if gt .Behind 0 }}#C792EA{{ end }}"
"{{ if or (.Working.Changed) (.Staging.Changed) }}#addb67{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f78c6c{{ end }}",
"{{ if gt .Ahead 0 }}#21c7a8{{ end }}",
"{{ if gt .Behind 0 }}#c792ea{{ end }}"
],
"properties": {
"branch_icon": "\ue725 ",
"fetch_status": true,
"fetch_stash_count": true,
"fetch_worktree_count": 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 }}<#ef5350> \uF046 {{ .Staging.String }}</>{{ end }}"
"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 }}"
}
},
{
"type": "executiontime",
"style": "diamond",
"leading_diamond": "<transparent,#575656>\uE0B0</>",
"trailing_diamond": "\uE0B0",
"trailing_diamond": "\uE0B4",
"foreground": "#d6deeb",
"background": "#575656",
"properties": {
@ -83,11 +88,23 @@
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "shell",
"style": "diamond",
"leading_diamond": "\uE0B6",
"trailing_diamond": "<transparent,#d6deeb>\uE0B2</>",
"foreground": "#011627",
"background": "#d6deeb",
"properties": {
"prefix": "\uf489 ",
"postfix": ""
}
},
{
"type": "node",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#303030>\uE0B2</>",
"foreground": "#3C873A",
"background": "#303030",
"properties": {
@ -101,8 +118,8 @@
{
"type": "python",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#306998>\uE0B2</>",
"foreground": "#FFE873",
"background": "#306998",
"properties": {
@ -113,8 +130,8 @@
{
"type": "java",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#0e8ac8>\uE0B2</>",
"foreground": "#ec2729",
"background": "#0e8ac8",
"properties": {
@ -125,8 +142,8 @@
{
"type": "dotnet",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#0e0e0e>\uE0B2</>",
"foreground": "#0d6da8",
"background": "#0e0e0e",
"properties": {
@ -137,8 +154,8 @@
{
"type": "go",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#06aad5",
"background": "#ffffff",
"properties": {
@ -149,8 +166,8 @@
{
"type": "rust",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#f3f0ec>\uE0B2</>",
"foreground": "#925837",
"background": "#f3f0ec",
"properties": {
@ -161,8 +178,8 @@
{
"type": "dart",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#e1e8e9>\uE0B2</>",
"foreground": "#055b9c",
"background": "#e1e8e9",
"properties": {
@ -173,8 +190,8 @@
{
"type": "angular",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#ce092f",
"background": "#ffffff",
"properties": {
@ -185,8 +202,8 @@
{
"type": "julia",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#945bb3>\uE0B2</>",
"foreground": "#359a25",
"background": "#945bb3",
"properties": {
@ -197,8 +214,8 @@
{
"type": "ruby",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#9c1006",
"background": "#ffffff",
"properties": {
@ -209,8 +226,8 @@
{
"type": "azfunc",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#5398c2",
"background": "#ffffff",
"properties": {
@ -221,8 +238,8 @@
{
"type": "aws",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#565656>\uE0B2</>",
"foreground": "#faa029",
"background": "#565656",
"properties": {
@ -234,8 +251,8 @@
{
"type": "kubectl",
"style": "diamond",
"leading_diamond": " \uE0B6",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B2",
"trailing_diamond": "<transparent,#316ce4>\uE0B2</>",
"foreground": "#ffffff",
"background": "#316ce4",
"properties": {
@ -247,13 +264,13 @@
{
"type": "time",
"style": "diamond",
"leading_diamond": " \uE0B6",
"leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4",
"foreground": "#d6deeb",
"background": "#234d70",
"properties": {
"prefix": " \uf64f ",
"postfix": " ",
"prefix": "\uf64f ",
"postfix": "",
"time_format": "15:04:05"
}
}
@ -278,7 +295,7 @@
"type": "spotify",
"style": "diamond",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0c6 ",
"trailing_diamond": "\uE0c6",
"foreground": "#011627",
"background": "#1DB954",
"properties": {
@ -293,11 +310,15 @@
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
"properties": {
"template": "\ue285\ue285",
"prefix": "",
"always_enabled": true
}
}
]
}
]
],
"transient_prompt": {
"background": "transparent",
"foreground": "#d6deeb",
"template": "\ue285 "
}
}