mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
parent
4a16c3fc6c
commit
9999260e9e
|
@ -24,6 +24,7 @@ Local changes can also shown by default using the following syntax for both the
|
||||||
"foreground": "#193549",
|
"foreground": "#193549",
|
||||||
"background": "#ffeb3b",
|
"background": "#ffeb3b",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"display_status": true,
|
||||||
"display_stash_count": true,
|
"display_stash_count": true,
|
||||||
"display_upstream_icon": true
|
"display_upstream_icon": true
|
||||||
}
|
}
|
||||||
|
@ -43,7 +44,7 @@ Local changes can also shown by default using the following syntax for both the
|
||||||
|
|
||||||
### Status
|
### Status
|
||||||
|
|
||||||
- display_status: `boolean` - display the local changes or not - defaults to `true`
|
- display_status: `boolean` - display the local changes or not - defaults to `false`
|
||||||
- display_status_detail: `boolean` - display the local changes in detail or not - defaults to `true`
|
- display_status_detail: `boolean` - display the local changes in detail or not - defaults to `true`
|
||||||
- display_stash_count: `boolean` show stash count or not - defaults to `false`
|
- display_stash_count: `boolean` show stash count or not - defaults to `false`
|
||||||
- status_separator_icon: `string` icon/text to display between staging and working area changes - defaults to ` |`
|
- status_separator_icon: `string` icon/text to display between staging and working area changes - defaults to ` |`
|
||||||
|
|
|
@ -140,7 +140,7 @@ func (g *git) enabled() bool {
|
||||||
|
|
||||||
func (g *git) string() string {
|
func (g *git) string() string {
|
||||||
statusColorsEnabled := g.props.getBool(StatusColorsEnabled, false)
|
statusColorsEnabled := g.props.getBool(StatusColorsEnabled, false)
|
||||||
displayStatus := g.props.getBool(DisplayStatus, true)
|
displayStatus := g.props.getBool(DisplayStatus, false)
|
||||||
|
|
||||||
if displayStatus || statusColorsEnabled {
|
if displayStatus || statusColorsEnabled {
|
||||||
g.setGitStatus()
|
g.setGitStatus()
|
||||||
|
|
Loading…
Reference in a new issue