Skip to content

Instantly share code, notes, and snippets.

@MarcHeiden
Created September 11, 2022 21:07
Show Gist options
  • Save MarcHeiden/a892cc9260ad2be30e909dbcb4e77a7e to your computer and use it in GitHub Desktop.
Save MarcHeiden/a892cc9260ad2be30e909dbcb4e77a7e to your computer and use it in GitHub Desktop.
My current oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"type": "prompt",
"segments": [
{
"foreground": "#F1F139",
"style": "plain",
"template": "\uf0e7 ",
"type": "root"
},
{
"type": "session",
"style": "plain",
"foreground": "#4FB2FF",
"template": "{{ .UserName }}@{{ .HostName }}"
}
]
},
{
"alignment": "left",
"type": "prompt",
"newline": true,
"segments": [
{
"foreground": "#A140FC",
"properties": {
"style": "full"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#39fa73",
"properties": {
"azure_devops_icon": "\ufd03 ",
"bitbucket_icon": "\uf171 ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"git_icon": "\ue5fb ",
"github_icon": "\uf408 ",
"gitlab_icon": "\uf296 "
},
"style": "plain",
"template": "<#F2F2F2>on </>{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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 }} \uf692 {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"foreground": "#ED3E4E",
"style": "plain",
"template": "\uf00d",
"type": "exit"
}
]
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#39fa73",
"style": "plain",
"template": "\u276f",
"type": "text"
}
],
"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