Skip to content

Instantly share code, notes, and snippets.

@BoYanZh
Last active November 11, 2024 09:44
Show Gist options
  • Select an option

  • Save BoYanZh/d5327ead36ebda3c3226aaa2b298cabc to your computer and use it in GitHub Desktop.

Select an option

Save BoYanZh/d5327ead36ebda3c3226aaa2b298cabc to your computer and use it in GitHub Desktop.
BoYanZh's Oh-My-Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"auto_upgrade": false,
"disable_notice": true,
"blocks": [
{
"segments": [
{
"type": "executiontime",
"style": "plain",
"foreground": "#87875f",
"template": " {{ .FormattedMs }}",
"properties": {
"threshold": 0,
"style": "austin",
"always_enabled": true
}
},
{
"type": "session",
"style": "plain",
"foreground": "#d7af87",
"template": " {{ .UserName }}@{{ .HostName }}"
},
{
"foreground": "#5f8787",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": " {{ .CurrentDate | date .Format }}",
"type": "time"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"segments": [
{
"foreground": "#01a9f6",
"properties": {
"style": "full"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#5FD700",
"properties": {
"branch_icon": "",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "plain",
"template": "{{ .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 }} ",
"type": "git"
},
{
"foreground": "#43D426",
"style": "plain",
"template": "\u276f ",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment