Last active
August 20, 2023 00:33
-
-
Save Mo-Shakib/c95f615331c141d51a232703a599ee5e to your computer and use it in GitHub Desktop.
Oh My Posh theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "type": "prompt", | |
| "segments": [ | |
| { | |
| "background": "#C5DB29", | |
| "foreground": "#000000", | |
| "leading_diamond": "\u256d\u2500\ue0b6", | |
| "properties": { | |
| "style": "plain" | |
| }, | |
| "style": "diamond", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "os", | |
| "template": " \ue711 Shakib " | |
| }, | |
| // { | |
| // "background": "#ffffff", | |
| // "foreground": "#000000", | |
| // "leading_diamond": "<transparent,background>\ue0b0</>", | |
| // "properties": { | |
| // "style": "plain" | |
| // }, | |
| // "style": "diamond", | |
| // "trailing_diamond": "\ue0b0", | |
| // "type": "text", | |
| // "template": " Shakib " | |
| // }, | |
| { | |
| "background": "#078cdf", | |
| "foreground": "#ffffff", | |
| "leading_diamond": "<transparent,background>\ue0b0</>", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "home_icon": "\uf015", | |
| "style": "folder", | |
| "mapped_locations": { | |
| "/Users/shakib/Documents/GitHub": "\uF09B", | |
| "/": "\ueb45" | |
| } | |
| }, | |
| "style": "diamond", | |
| "template": " \udb80\ude4b {{ .Path }} ", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "path" | |
| }, | |
| { | |
| "background": "#fee761", | |
| "background_templates": [ | |
| "{{ if or (.Working.Changed) (.Staging.Changed) }}#f77622{{ end }}", | |
| "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#e43b44{{ end }}", | |
| "{{ if gt .Ahead 0 }}#2ce8f5{{ end }}", | |
| "{{ if gt .Behind 0 }}#f77622{{ end }}" | |
| ], | |
| "foreground": "#000000", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_stash_count": true, | |
| "fetch_status": true, | |
| "fetch_upstream_icon": true | |
| }, | |
| "style": "powerline", | |
| "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ", | |
| "type": "git" | |
| }, | |
| { | |
| "background": "#4c1f5e", | |
| "foreground": "#E4F34A", | |
| "leading_diamond": "<transparent,background>\ue0b0</>", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_version": false, | |
| "display_mode": "files" | |
| }, | |
| "style": "diamond", | |
| "template": " \ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "python" | |
| }, | |
| { | |
| "background": "#352f36", | |
| "foreground": "#42E66C", | |
| "leading_diamond": "<transparent,background>\ue0b0</>", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_version": false | |
| }, | |
| "style": "diamond", | |
| "template": " \ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "node" | |
| }, | |
| { | |
| "type": "php", | |
| "style": "diamond", | |
| "leading_diamond": "<transparent,background>\ue0b0</>", | |
| "trailing_diamond": "\ue0b0", | |
| "powerline_symbol": "\ue0b0", | |
| "foreground": "#ffffff", | |
| "background": "#59148e", | |
| "template": " \ue73d {{ .Full }}", | |
| "properties": { | |
| "fetch_version": false, | |
| "display_mode": "files" | |
| } | |
| }, | |
| { | |
| "background": "#01A252", | |
| "background_templates": ["{{ if gt .Code 0 }}#ff0044{{ end }}"], | |
| "foreground": "#fbfbfb", | |
| "leading_diamond": "<transparent,background>\ue0b0</>", | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "diamond", | |
| "template": "{{ if gt .Code 0 }} \uf00d {{ else }} \uf00c {{ end }}", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "exit" | |
| } | |
| ] | |
| }, | |
| { | |
| // These elements will appear on the right side of the prompt | |
| "alignment": "right", | |
| "segments": [ | |
| { | |
| "background": "#6554AF", | |
| "foreground": "#ffffff", | |
| "properties": { | |
| "style": "roundrock", | |
| "threshold": 0 | |
| }, | |
| "style": "diamond", | |
| "template": "\udb86\uded1 {{ .FormattedMs }}", | |
| "leading_diamond": "\ue0b6", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "executiontime" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#ffffff", | |
| "style": "plain", | |
| "template": "\u2570\u2500", | |
| "type": "text" | |
| }, | |
| { | |
| "foreground": "#ffffff", | |
| "foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"], | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "plain", | |
| "template": "\ueb9e", | |
| "type": "exit" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "final_space": true, | |
| "version": 2 | |
| } |
Author
Mo-Shakib
commented
Jul 10, 2023
Author
// Icons: https://www.nerdfonts.com/cheat-sheet
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"type": "prompt",
"segments": [
{
"background": "#C5DB29",
"foreground": "#000000",
"leading_diamond": "\u256d\u2500\ue0b6",
"properties": {
"style": "plain"
},
"style": "diamond",
"trailing_diamond": "\ue0b0",
"type": "os",
"template": " \ue711 Shakib "
},
// {
// "background": "#ffffff",
// "foreground": "#000000",
// "leading_diamond": "<transparent,background>\ue0b0</>",
// "properties": {
// "style": "plain"
// },
// "style": "diamond",
// "trailing_diamond": "\ue0b0",
// "type": "text",
// "template": " Shakib "
// },
{
"background": "#078cdf",
"foreground": "#ffffff",
"leading_diamond": "<transparent,background>\ue0b0</>",
"powerline_symbol": "\ue0b0",
"properties": {
"home_icon": "\uf015",
"style": "folder",
"mapped_locations": {
"/Users/shakib/Documents/GitHub": "\uF09B",
"/": "\ueb45"
}
},
"style": "diamond",
"template": " \udb80\ude4b {{ .Path }} ",
"trailing_diamond": "\ue0b0",
"type": "path"
},
{
"background": "#fee761",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#f77622{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#e43b44{{ end }}",
"{{ if gt .Ahead 0 }}#2ce8f5{{ end }}",
"{{ if gt .Behind 0 }}#f77622{{ end }}"
],
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#4c1f5e",
"foreground": "#E4F34A",
"leading_diamond": "<transparent,background>\ue0b0</>",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": false,
"display_mode": "files"
},
"style": "diamond",
"template": " \ue235{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"trailing_diamond": "\ue0b0",
"type": "python"
},
{
"background": "#352f36",
"foreground": "#42E66C",
"leading_diamond": "<transparent,background>\ue0b0</>",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": false
},
"style": "diamond",
"template": " \ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"trailing_diamond": "\ue0b0",
"type": "node"
},
{
"type": "php",
"style": "diamond",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#59148e",
"template": " \ue73d {{ .Full }}",
"properties": {
"fetch_version": false,
"display_mode": "files"
}
},
{
"background": "#01A252",
"background_templates": ["{{ if gt .Code 0 }}#ff0044{{ end }}"],
"foreground": "#fbfbfb",
"leading_diamond": "<transparent,background>\ue0b0</>",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": "{{ if gt .Code 0 }} \uf00d {{ else }} \uf00c {{ end }}",
"trailing_diamond": "\ue0b4",
"type": "exit"
}
]
},
{
// These elements will appear on the right side of the prompt
"alignment": "right",
"segments": [
{
"background": "#6554AF",
"foreground": "#ffffff",
"properties": {
"style": "roundrock",
"threshold": 0
},
"style": "diamond",
"template": "\udb86\uded1 {{ .FormattedMs }}",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4",
"type": "executiontime"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#ffffff",
"style": "plain",
"template": "\u2570\u2500",
"type": "text"
},
{
"foreground": "#ffffff",
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "\ueb9e",
"type": "exit"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment