fix: modify shell prompt
This commit is contained in:
parent
995555050c
commit
a994b9082a
1 changed files with 4 additions and 1 deletions
|
|
@ -56,8 +56,11 @@
|
||||||
"background": "#95ffa4",
|
"background": "#95ffa4",
|
||||||
"foreground": "#193549",
|
"foreground": "#193549",
|
||||||
"powerline_symbol": "\ue0b0",
|
"powerline_symbol": "\ue0b0",
|
||||||
|
"properties": {
|
||||||
|
"fetch_status": true
|
||||||
|
},
|
||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
"template": " {{ .HEAD }} ",
|
"template": " {{ .HEAD }}{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{- $staged := add .Staging.Added (add .Staging.Modified (add .Staging.Deleted .Staging.Unmerged)) -}}{{ if gt $staged 0 }} ^{{$staged}}{{ end }}{{ if gt .Working.Modified 0 }} ~{{ .Working.Modified }}{{ end }}{{ if gt .Working.Deleted 0 }} -{{ .Working.Deleted }}{{ end }}{{ if gt .Working.Untracked 0 }} +{{ .Working.Untracked }}{{ end }} ",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue