diff options
author | Matan Kushner <hello@matchai.dev> | 2021-12-21 00:05:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 16:05:59 -0500 |
commit | 5de3f18bcef92cabb2d7a4552abcff295422f26c (patch) | |
tree | ad30252ae3257835ba64e9721b7b8fb32aa23015 /docs/nl-NL | |
parent | 006fbf0dd5b28f2d2f4f69a82c9a5a9a5344ac26 (diff) |
docs(i18n): new Crowdin updates (#3218)
Diffstat (limited to 'docs/nl-NL')
-rw-r--r-- | docs/nl-NL/config/README.md | 93 | ||||
-rw-r--r-- | docs/nl-NL/presets/README.md | 6 |
2 files changed, 88 insertions, 11 deletions
diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md index c1e246db1..7f953ab4b 100644 --- a/docs/nl-NL/config/README.md +++ b/docs/nl-NL/config/README.md @@ -61,7 +61,7 @@ Format strings are the format that a module prints all its variables with. Most #### Variable -A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`. +A variable contains a `$` symbol followed by the name of the variable. The name of a variable can only contain letters, numbers and `_`. For example: @@ -106,18 +106,11 @@ For example: - `(some text)` will always show nothing since there are no variables wrapped in the braces. - When `$all` is a shortcut for `\[$a$b\]`, `($all)` will show nothing only if `$a` and `$b` are both `None`. This works the same as `(\[$a$b\] )`. -#### Escapable characters +#### Special characters -The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`). +The following symbols have special usage in a format string and must be escaped: `$ \ [ ] ( )`. -- \$ -- \\ -- [ -- ] -- ( -- ) - -Note that `toml` has [its own escape syntax](https://github.com/toml-lang/toml#user-content-string). It is recommended to use a literal string (`''`) in your config. If you want to use a basic string (`""`), pay attention to escape the backslash `\`. +Note that TOML has [both basic strings and literal strings](https://toml.io/en/v1.0.0#string). It is recommended to use a literal string (surrounded by single quotes) in your config. If you want to use a basic string (surrounded by double quotes), you must escape the backslash itself (i.e. use `\\`). For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent: @@ -231,9 +224,11 @@ $memory_usage\ $aws\ $gcloud\ $openstack\ +$azure\ $env_var\ $crystal\ $custom\ +$sudo\ $cmd_duration\ $line_break\ $jobs\ @@ -325,6 +320,31 @@ style = "bold blue" symbol = "🅰 " ``` +## Azure + +The `azure` module shows the current Azure Subscription. This is based on showing the name of the default subscription, as defined in the `~/.azure/azureProfile.json` file. + +### Options + +| Variable | Default | Description | +| ---------- | ---------------------------------------- | ------------------------------------------ | +| `format` | `"on [$symbol($subscription)]($style) "` | The format for the Azure module to render. | +| `symbol` | `"ﴃ "` | The symbol used in the format. | +| `style` | `"blue bold"` | The style used in the format. | +| `disabled` | `true` | Disables the `azure` module. | + +### Example + +```toml +# ~/.config/starship.toml + +[azure] +disabled = false +format = "on [$symbol($subscription)]($style) " +symbol = "ﴃ " +style = "blue bold" +``` + ## Battery The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. @@ -2129,6 +2149,7 @@ The `package` module is shown when the current directory is the repository for a - [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present - [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present - [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present +- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory > ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager. @@ -2809,6 +2830,56 @@ disabled = false ``` +## Sudo + +The `sudo` module displays if sudo credentials are currently cached. The module will only be shown if credentials are cached. + +::: tip + +This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. + +::: + +### Options + +| Option | Default | Description | +| --------------- | ----------------------- | ------------------------------------------------------- | +| `format` | `[as $symbol]($style)"` | The format of the module | +| `symbol` | `"🧙 "` | The symbol displayed when credentials are cached | +| `style` | `"bold blue"` | The style for the module. | +| `allow_windows` | `false` | Since windows has no default sudo, default is disabled. | +| `disabled` | `true` | Disables the `sudo` module. | + +### Variables + +| Variable | Example | Description | +| --------- | ------- | ------------------------------------ | +| symbol | | Mirrors the value of option `symbol` | +| style\* | | Mirrors the value of option `style` | + +\*: This variable can only be used as a part of a style string + +### Example + +```toml + +# ~/.config/starship.toml + +[sudo] +style = "bold green" +symbol = "👩💻 " +disabled = false +``` + +```toml +# On windows +# $HOME\.starship\config.toml + +[sudo] +allow_windows = true +disabled = false +``` + ## Swift By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met: diff --git a/docs/nl-NL/presets/README.md b/docs/nl-NL/presets/README.md index 269bf19d2..8d3511b5e 100644 --- a/docs/nl-NL/presets/README.md +++ b/docs/nl-NL/presets/README.md @@ -223,6 +223,9 @@ format = '\[[$symbol($version)]($style)\]' [scala] format = '\[[$symbol($version)]($style)\]' +[sudo] +format = '\[[as $symbol]\] + [swift] format = '\[[$symbol($version)]($style)\]' @@ -371,6 +374,9 @@ symbol = "rs " [scala] symbol = "scala " +[sudo] +symbol = "sudo " + [swift] symbol = "swift " ``` |