Advertisement
fhumayun

Oh-my-posh prompt

Mar 17th, 2024
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.33 KB | Software | 0 0
  1. {
  2.   "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  3.   "blocks": [
  4.     {
  5.       "alignment": "left",
  6.       "newline": true,
  7.       "segments": [
  8.         {
  9.           "background": "#0c7bbb",
  10.           "foreground": "#ffffff",
  11.           "leading_diamond": "\u256d\u2500\ue0b2",
  12.           "properties": {
  13.             "alpine": "\uf300",
  14.             "arch": "\uf303",
  15.             "centos": "\uf304",
  16.             "debian": "\uf306",
  17.             "elementary": "\uf309",
  18.             "fedora": "\uf30a",
  19.             "gentoo": "\uf30d",
  20.             "linux": "\ue712",
  21.             "macos": "\ue711",
  22.             "manjaro": "\uf312",
  23.             "mint": "\uf30f",
  24.             "opensuse": "\uf314",
  25.             "raspbian": "\uf315",
  26.             "ubuntu": "\uf31c",
  27.             "windows": "\ue70f"
  28.           },
  29.           "style": "diamond",
  30.           "template": " {{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}  ",
  31.           "type": "os"
  32.         },
  33.         {
  34.           "background": "#DA627D",
  35.           "foreground": "#ffffff",
  36.           "powerline_symbol": "\ue0b0",
  37.           "style": "diamond",
  38.           "template": " 🏠  ",
  39.           "type": "text"
  40.         },
  41.         {
  42.           "background": "#8a62da",
  43.           "foreground": "#ffffff",
  44.           "powerline_symbol": "\ue0b0",
  45.           "properties": {
  46.             "style": "folder"
  47.           },
  48.           "style": "powerline",
  49.           "template": " {{ .Path }} ",
  50.           "type": "path"
  51.         },
  52.         {
  53.       "foreground": "#ffffff",
  54.       "background": "#013220",
  55.           "powerline_symbol": "\ue0b0",
  56.           "style": "diamond",
  57.           "template": " 🐍  ",
  58.           "type": "text"
  59.         },
  60.     {
  61.       "type": "python",
  62.       "style": "powerline",
  63.       "foreground": "#ffffff",
  64.       "background": "#013220",
  65.       "properties": {
  66.         "template": "$pyenv_version"
  67.       }
  68.     },
  69.         {
  70.           "background": "#191f48",
  71.           "foreground": "#43CCEA",
  72.           "style": "powerline",
  73.           "powerline_symbol": "\ue0b0",
  74.           "foreground_templates": [
  75.             "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
  76.             "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
  77.             "{{ if gt .Ahead 0 }}#B388FF{{ end }}",
  78.             "{{ if gt .Behind 0 }}#B388FF{{ end }}"
  79.           ],
  80.           "properties": {
  81.             "branch_max_length": 25,
  82.             "fetch_stash_count": true,
  83.             "fetch_status": true,
  84.             "fetch_upstream_icon": true
  85.           },
  86.           "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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 }} \ueb4b {{ .StashCount }}{{ end }} ",
  87.           "trailing_diamond": "\ue0b4",
  88.           "type": "git"
  89.         }
  90.       ],
  91.       "type": "prompt"
  92.     },
  93.     {
  94.       "alignment": "right",
  95.       "segments": [
  96.         {
  97.           "foreground": "#81ff91",
  98.           "style": "diamond",
  99.           "template": "<#cc7eda> \u007C </><#7eb8da>RAM:</> {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB",
  100.           "type": "sysinfo"
  101.         },
  102.         {
  103.           "foreground": "#81ff91",
  104.           "properties": {
  105.             "fetch_version": true
  106.           },
  107.           "style": "powerline",
  108.           "template": "<#cc7eda> \u007C </><#7eb8da>\ue718</> {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
  109.           "type": "node"
  110.         },
  111.         {
  112.           "type": "php",
  113.           "style": "powerline",
  114.           "foreground": "#81ff91",
  115.           "template": "<#cc7eda> \u007C </><#7eb8da>\ue73d</> {{ .Full }}"
  116.         },
  117.         {
  118.           "type": "npm",
  119.           "style": "powerline",
  120.           "foreground": "#81ff91",
  121.           "template": "<#cc7eda> \u007C </><#7eb8da>\ue71e </> {{ .Full }}"
  122.         },
  123.         {
  124.           "type": "sysinfo",
  125.           "style": "powerline",
  126.           "foreground": "#81ff91",
  127.           "template": "<> </>"
  128.         },
  129.         {
  130.           "background": "#cecece",
  131.           "foreground": "#4b4b4b",
  132.           "leading_diamond": "\ue0b2",
  133.           "trailing_diamond": "\ue0b0",
  134.           "properties": {
  135.             "style": "austin",
  136.             "threshold": 150
  137.           },
  138.           "style": "diamond",
  139.           "template": "⌛  {{ .FormattedMs }} ",
  140.           "type": "executiontime"
  141.         },
  142.         {
  143.           "background": "#cecece",
  144.           "foreground": "#4b4b4b",
  145.           "leading_diamond": "\ue0b2",
  146.           "properties": {
  147.             "time_format": "15:04:05"
  148.           },
  149.           "style": "diamond",
  150.           "template": "⏰  {{ .CurrentDate | date .Format }} ",
  151.           "trailing_diamond": "\ue0b0",
  152.           "type": "time"
  153.         }
  154.       ],
  155.       "type": "prompt"
  156.     },
  157.     {
  158.       "alignment": "left",
  159.       "newline": true,
  160.       "segments": [
  161.         {
  162.           "foreground": "#0c7bbb",
  163.           "style": "plain",
  164.           "template": "\u2570\u2500",
  165.           "type": "text"
  166.         }
  167.       ],
  168.       "type": "prompt"
  169.     }
  170.   ],
  171.   "final_space": true,
  172.   "version": 2
  173. }
  174.  
Tags: oh-my-posh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement