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:
Thomas O'Donnell
2020-10-12 06:10:39 +02:00
committed by GitHub
parent e7a83aa445
commit 9044f9e14c
2 changed files with 102 additions and 103 deletions
+3 -3
View File
@@ -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