summaryrefslogtreecommitdiffstats
path: root/docs/presets
diff options
context:
space:
mode:
authorGabriel Victor <64982761+gabrielvictorcf@users.noreply.github.com>2021-11-15 02:46:13 -0300
committerGitHub <noreply@github.com>2021-11-15 06:46:13 +0100
commit779e53cd66c56f13f55c4ad1367da1247cf44fdc (patch)
treed92b18359be44da027af2f96ebe404b410ab148f /docs/presets
parentc3e33ea1c77e86cefabff09bfb7c55d10c9e541d (diff)
feat(module): Add `sudo` module (#3135)
* add feature - sudo module * add sudo module identifiers and entry point * fix test test_sudo_not_cached * add test test_sudo_cached * add `allow_windows` and `binary` options * rustfmt sudo_x_cached and rmv them on windows * add false `allow_windows` block windows test * add `doas` cached/not_cached tests * better description in `starship explain` * fix `test_doas_cached` with `-n` flag Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * rmv `binary` alternatives and their tests * fix symbol and update config/README * fix all mocks to use `sudo -n true` * fix expected output in `test_sudo_cached` * proper checking for blocked sudo Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * add `allow_windows = true` to non-windows tests * allow sudo_* tests to run on windows + fix parsed * rustfmt `blocks_windows` test Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Diffstat (limited to 'docs/presets')
-rw-r--r--docs/presets/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/presets/README.md b/docs/presets/README.md
index 9ea120a54..90a084ba2 100644
--- a/docs/presets/README.md
+++ b/docs/presets/README.md
@@ -226,6 +226,9 @@ format = '\[[$symbol($version)]($style)\]'
[scala]
format = '\[[$symbol($version)]($style)\]'
+[sudo]
+format = '\[[as $symbol]\]
+
[swift]
format = '\[[$symbol($version)]($style)\]'
@@ -375,6 +378,9 @@ symbol = "rs "
[scala]
symbol = "scala "
+[sudo]
+symbol = "sudo "
+
[swift]
symbol = "swift "
```