mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
docs: Update defaults in config docs (#1759)
Have updated some of the config docs to correct the git_status default that was incorrect. Have also taken the time to switch some of the format strings to use toml literal strings rather than normal strings to simplify the escape strings.
This commit is contained in:
@@ -168,7 +168,7 @@ error_symbol = "[✖](bold red)"
|
||||
[git_commit]
|
||||
-- prefix = "("
|
||||
-- suffix = ")"
|
||||
++ format = "[\\($hash\\)]($style) "
|
||||
++ format = '[\($hash\)]($style) '
|
||||
```
|
||||
|
||||
#### Git Status
|
||||
@@ -186,7 +186,7 @@ error_symbol = "[✖](bold red)"
|
||||
-- prefix = "["
|
||||
-- suffix = "]"
|
||||
-- show_sync_count = false
|
||||
++ format = "[\\[$all_status$ahead_behind\\]]($style)"
|
||||
++ format = '([\[$all_status$ahead_behind\]]($style) )'
|
||||
```
|
||||
|
||||
Previously, the `show_sync_count` property was used to configure the prompt to
|
||||
@@ -234,7 +234,7 @@ behind = "⇣${count}"
|
||||
[singularity]
|
||||
-- prefix = ""
|
||||
-- suffix = ""
|
||||
++ format = "[$symbol\\[$env\\]]($style) "
|
||||
++ format = '[$symbol\[$env\]]($style) '
|
||||
```
|
||||
|
||||
#### Time
|
||||
|
||||
Reference in New Issue
Block a user