mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
fix(git): migrate deprecated icon
This commit is contained in:
parent
6f951e8bd9
commit
0671e2c42c
|
@ -62,7 +62,7 @@ func (segment *Segment) migrationOne(env platform.Environment) {
|
||||||
segment.migrateTemplate()
|
segment.migrateTemplate()
|
||||||
segment.migrateIconOverride("local_working_icon", " \uF044 ")
|
segment.migrateIconOverride("local_working_icon", " \uF044 ")
|
||||||
segment.migrateIconOverride("local_staged_icon", " \uF046 ")
|
segment.migrateIconOverride("local_staged_icon", " \uF046 ")
|
||||||
segment.migrateIconOverride("stash_count_icon", " \uF692 ")
|
segment.migrateIconOverride("stash_count_icon", " \uf0c7 ")
|
||||||
segment.migrateIconOverride("worktree_count_icon", " \uf1bb ")
|
segment.migrateIconOverride("worktree_count_icon", " \uf1bb ")
|
||||||
segment.migrateIconOverride("status_separator_icon", " |")
|
segment.migrateIconOverride("status_separator_icon", " |")
|
||||||
if segment.Properties.GetBool("status_colors_enabled", false) {
|
if segment.Properties.GetBool("status_colors_enabled", false) {
|
||||||
|
|
|
@ -51,7 +51,7 @@ import Config from "@site/src/components/Config.js";
|
||||||
"{{ if gt .Behind 0 }}#B388FB{{ end }}",
|
"{{ if gt .Behind 0 }}#B388FB{{ end }}",
|
||||||
],
|
],
|
||||||
template:
|
template:
|
||||||
"{{ .UpstreamIcon }}{{ .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 }} \uF692 {{ .StashCount }}{{ end }}",
|
"{{ .UpstreamIcon }}{{ .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 }} \uf0c7 {{ .StashCount }}{{ end }}",
|
||||||
properties: {
|
properties: {
|
||||||
fetch_status: true,
|
fetch_status: true,
|
||||||
fetch_upstream_icon: true,
|
fetch_upstream_icon: true,
|
||||||
|
|
Loading…
Reference in a new issue