Push-Nachrichten von MacTechNews.de
Würden Sie gerne aktuelle Nachrichten aus der Apple-Welt direkt über Push-Nachrichten erhalten?
Forum>Entwickler>Ein oh-my-posh Terminal Theme

Ein oh-my-posh Terminal Theme

HigZ
HigZ25.11.2506:37


Exemplarisch, es gab wenig Templates....

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "palette": {
    "white": "#FFFFFF",
    "tan": "#CC3802",
    "teal": "#047E84",
    "plum": "#9A348E",
    "blush": "#DA627D",
    "salmon": "#FCA17D",
    "sky": "#86BBD8",
    "teal_blue": "#33658A"
  },
  "blocks": [
    {
      "alignment": "left",
      "segments": [
                  {
          "background": "#d75f00",
          "foreground": "#f2f3f8",
          "properties": {
            "alpine": "\uf300",
            "arch": "\uf303",
            "centos": "\uf304",
            "debian": "\uf306",
            "elementary": "\uf309",
            "fedora": "\uf30a",
            "gentoo": "\uf30d",
            "linux": "\ue712",
            "macos": "\ue711",
            "manjaro": "\uf312",
            "mint": "\uf30f",
            "opensuse": "\uf314",
            "raspbian": "\uf315",
            "ubuntu": "\uf31c",
            "windows": "\ue70f"
          },
          "style": "diamond",
          "leading_diamond": "\ue0b6",
          "template": "{{ .Icon }} ",
          "type": "os"
        },
        {
          "background": "#e4e4e4",
          "foreground": "#4e4e4e",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "{{ .UserName }} ",
          "type": "session"
        },
        {
          "background": "#0087cf",
          "foreground": "#f2f3f8",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "style": "folder"
          },
          "style": "powerline",
          "template": " {{ .Path }} ",
          "type": "path"
        },
        {
          "type": "sysinfo",
          "powerline_symbol": "",
          "foreground": "#ff0000",
          "background": "#dfff00",
          "template": "  {{ round .Load1 .Precision }}% ",
          "properties": {
          "precision": 2
         },
         "style": "powerline"
        },
        {
          "background": "#1BD760",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "paused_icon": "⏸ ",
            "playing_icon": "▶ ",
            "stopped_icon": "⏹ ",
            "track_separator": " - "
          },
          "style": "powerline",
          "template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }}{{ end }}",
          "type": "spotify"
        },
        {
          "background": "#df432B",
          "foreground": "#f1f0e9",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "branch_icon": "",
            "fetch_status": false,
            "fetch_upstream_icon": true
          },
          "style": "powerline",
          "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
          "type": "git"
        },
        {
          "background": "p:sky",
          "foreground": "p:white",
          "powerline_symbol": "\ue0b0",
          "style": "powerline",
          "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
          "type": "node"
        },
        {
          "background": "#0087af",
          "foreground": "#f2f3f8",
          "properties": {
            "time_format": "15:04"
          },
          "style": "diamond",
          "template": " {{ .CurrentDate | date .Format }} ",
          "trailing_diamond": "\ue0b0",
          "type": "time"
        },


{
  "type": "status",
  "style": "diamond",
  "foreground": "#ffffff",
  "background": "#0087cf",
  "trailing_diamond": "",
  "background_templates": ["{{ if .Error }}#e91e63{{ end }}"],
  "template": "{{ if eq .Code 0 }}{{ else }}\uf071 {{ reason .Code }}{{ end }}",
  "properties": {
    "always_enabled": true
  }
},


        {
          "background": "#83769c",
          "foreground": "#ffffff",
          "properties": {
            "style": "roundrock",
            "threshold": 0
          },
          "style": "diamond",
          "template": " \ueba2 {{ .FormattedMs }}\u2800",
          "trailing_diamond": "\ue0b0",
          "type": "executiontime"
        }
      ],
      "type": "prompt"
    }
  ],
  "final_space": true,
  "version": 3
}
„Bertelmann's Socks and the Nature of Reality.“
-3

Kommentare

HigZ
HigZ25.11.2506:56
Noch ein letzter Fehler, ein Space vor der Farbe, konnte es nichtmehr editieren....

  • "template": "{{ if eq .Code 0 }}{{ else }} \uf071 {{ reason .Code }}
„Bertelmann's Socks and the Nature of Reality.“
-1
Moranai
Moranai25.11.2508:10
Ein bisschen Info, was du mit dem Post sagen möchtest, wäre schon schön gewesen
+1

Kommentieren

Sie müssen sich einloggen, um sich an einer Diskussion beteiligen zu können.