Created
March 11, 2024 15:58
-
-
Save moaalaa/5b0bb538446754533803b26f292b38c6 to your computer and use it in GitHub Desktop.
My Oh My Posh Theme
This file contains 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", | |
"version": 2, | |
"final_space": true, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "os", | |
"style": "plain", | |
"foreground": "#26C6DA", | |
"background": "transparent" | |
}, | |
{ | |
"type": "text", | |
"style": "plain", | |
"foreground": "#98C379", | |
"template": "➜" | |
}, | |
{ | |
"type": "path", | |
"style": "plain", | |
"foreground": "#56B6C2", | |
"template": " {{ .Path }} ", | |
"properties": { | |
"style": "folder" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "plain", | |
"foreground": "#D0666F", | |
"template": "<#5FAAE8>git:(</>{{ .HEAD }}<#5FAAE8>)</>", | |
"properties": { | |
"branch_icon": "" | |
} | |
}, | |
{ | |
"type": "status", | |
"style": "plain", | |
"properties": { | |
"always_enabled": true | |
}, | |
"foreground_templates": [ | |
"{{ if .Error }}#BF616A{{ else }}#98C379{{ end }}" | |
], | |
"template": "{{ if .Error }} ✗{{ else }} ✔{{ end }}" | |
} | |
] | |
}, | |
{ | |
"type": "rprompt", | |
"segments": [ | |
{ | |
"type": "node", | |
"style": "plain", | |
"foreground": "p:green", | |
"background": "transparent", | |
"template": "\ue718 ", | |
"properties": { | |
"display_mode": "files", | |
"fetch_package_manager": false, | |
"home_enabled": false | |
} | |
}, | |
{ | |
"type": "go", | |
"style": "plain", | |
"foreground": "p:blue", | |
"background": "transparent", | |
"template": "\ue626 ", | |
"properties": { | |
"fetch_version": false | |
} | |
}, | |
{ | |
"type": "python", | |
"style": "plain", | |
"foreground": "p:yellow", | |
"background": "transparent", | |
"template": "\ue235 ", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": false, | |
"fetch_virtual_env": false | |
} | |
}, | |
{ | |
"type": "php", | |
"style": "plain", | |
"foreground": "p:4063D8", | |
"background": "transparent", | |
"template": " {{ .Full }} ", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true, | |
"fetch_virtual_env": false | |
} | |
}, | |
{ | |
"type": "shell", | |
"style": "plain", | |
"foreground": "p:white", | |
"background": "transparent", | |
"template": "in <p:blue><b>{{ .Name }}</b></> " | |
}, | |
{ | |
"type": "time", | |
"style": "plain", | |
"foreground": "p:white", | |
"background": "transparent", | |
"template": "at <p:blue><b>{{ .CurrentDate | date \"3:04:05 PM\" }}</b></>" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment