Closed dvchoudh closed 2 years ago
@BinxDot it seems this should be rather straightforward [17:48:47] kg:iterm-test git: (master*) $
. You can have a look at honukai to get you started for example. Here's my go at it, needs some tweaks to be complete but this should get you going.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "p:white",
"template": "[{{ .CurrentDate | date .Format }}]",
"properties": {
"time_format": "15:04:05"
}
},
{
"type": "path",
"style": "plain",
"foreground": "p:white",
"template": " <p:lightgreen>{{ .UserName }}</>:<p:green>{{ .Path }}</>",
"properties": {
"style": "folder"
}
},
{
"foreground": "p:green",
"style": "plain",
"template": " git:({{ .HEAD }}{{ if .Working.Changed }}*{{ end }}{{ if .Staging.Changed }}!{{ end }})",
"type": "git",
"properties": {
"branch_icon": ""
}
},
{
"type": "text",
"style": "plain",
"foreground": "p:white",
"template": " $"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"palette": {
"green": "#83BB6D",
"white": "#ffffff",
"lightgreen": "#74ADC4"
},
"version": 2
}
Thanks a lot!
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What would you like to see changed/added?
Hey there, just wanted to say excellent job on ohmyposh. I've been using it for a while now and it's great. I was just exploring a few zsh themes from ohmyzsh today and stumbled upon a theme called
geoffgarside
which I really liked. https://github.com/ohmyzsh/ohmyzsh/wiki/Themes#geoffgarsideI was just wondering if someone would be able to port this to ohmyposh, will highly appreciate it :)