mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
fix(git): correct color templates functions
This commit is contained in:
parent
17a53f63bd
commit
7a5bccf101
|
@ -38,9 +38,9 @@ An alternative is to use the [Posh-Git segment][poshgit]
|
|||
"background": "#ffeb3b",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#FFEB3B{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#FFCC80{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#B388FF{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#B388FB{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#FFCC80{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#B388FF{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#B388FB{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
|
@ -51,9 +51,9 @@
|
|||
"background": "#00C853",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#FFEB3B{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#FFCC80{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#B388FF{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#B388FF{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#FFCC80{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#B388FF{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#B388FF{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
|
|
|
@ -60,9 +60,9 @@
|
|||
"background": "#caffbf",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#FCA17D{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#89d1dc{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#f17c37{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#89d1dc{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#f17c37{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_upstream_icon": true,
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
"background": "#d2ff5e",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ff9248{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#89d1dc{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#f17c37{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#89d1dc{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#f17c37{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
"background": "#fffb38",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#FF9248{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#ff4500{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#B388FF{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#B388FF{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#ff4500{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#B388FF{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#B388FF{{ end }}"
|
||||
],
|
||||
"leading_diamond": "",
|
||||
"trailing_diamond": "",
|
||||
|
|
|
@ -50,9 +50,9 @@
|
|||
"foreground": "#FFFFFF",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#7621DE{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#7621DE{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#7621DE{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#7621DE{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#7621DE{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#7621DE{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#7621DE{{ end }}"
|
||||
],
|
||||
"powerline_symbol": "\uE0B0",
|
||||
"properties": {
|
||||
|
|
|
@ -121,8 +121,8 @@
|
|||
"background": "#ffffff",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ffea00{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#8A4FFF{{ end }}"
|
||||
"{{ if gt .Repo.Ahead 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#8A4FFF{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
|
|
|
@ -71,9 +71,9 @@
|
|||
"background": "#6f42c1",
|
||||
"backround_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#176f2c{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#0366d6{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#f9c513{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#0366d6{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#f9c513{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
"foreground": "#262b44",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#f77622{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#e43b44{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#2ce8f5{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#f77622{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#e43b44{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#2ce8f5{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#f77622{{ end }}"
|
||||
],
|
||||
"powerline_symbol": "\uE0B0",
|
||||
"properties": {
|
||||
|
|
|
@ -72,9 +72,9 @@
|
|||
"background": "#fffb38",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ff9248{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#f17c37{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#89d1dc{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#f17c37{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#89d1dc{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
"background": "#22da6e",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ffeb95{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#c5e478{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#C792EA{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#C792EA{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#c5e478{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#C792EA{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#C792EA{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"branch_icon": "\ue725 ",
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
"foreground": "green",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}yellow{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}red{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}red{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}green{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}red{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}red{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}green{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
|
@ -121,8 +121,8 @@
|
|||
"background": "#2f2f2f",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ffea00{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#8A4FFF{{ end }}"
|
||||
"{{ if gt .Repo.Ahead 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#8A4FFF{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
"background": "#4e9a06",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#c4a000{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#89d1dc{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#4e9a06{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#89d1dc{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#4e9a06{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"branch_icon": "\uF126 ",
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"foreground": "#424242",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#053F22{{ end }}",
|
||||
"{{ if or (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#0A703E{{ end }}"
|
||||
"{{ if or (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#0A703E{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
|
@ -80,8 +80,8 @@
|
|||
"background": "#2f2f2f",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ffeb3b{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#8A4FFF{{ end }}"
|
||||
"{{ if gt .Repo.Ahead 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#8A4FFF{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
|
|
|
@ -78,8 +78,8 @@
|
|||
"background": "#2f2f2f",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ffeb3b{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#8A4FFF{{ end }}"
|
||||
"{{ if gt .Repo.Ahead 0 }}#2EC4B6{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#8A4FFF{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_stash_count": true,
|
||||
|
|
|
@ -70,9 +70,9 @@
|
|||
"background": "#95ffa4",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ff9248{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#89d1dc{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#c5b6ad{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#89d1dc{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#c5b6ad{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
|
@ -42,9 +42,9 @@
|
|||
"background": "#d2ff5e",
|
||||
"background_templates": [
|
||||
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ff9248{{ end }}",
|
||||
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
||||
"{{ if .Repo.Ahead gt 0 }}#89d1dc{{ end }}",
|
||||
"{{ if .Repo.Behind gt 0 }}#f17c37{{ end }}"
|
||||
"{{ if and (gt .Repo.Ahead 0) (gt .Repo.Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Repo.Ahead 0 }}#89d1dc{{ end }}",
|
||||
"{{ if gt .Repo.Behind 0 }}#f17c37{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
|
|
Loading…
Reference in a new issue