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/pl-PL/config/README.md | |
parent | 006fbf0dd5b28f2d2f4f69a82c9a5a9a5344ac26 (diff) |
docs(i18n): new Crowdin updates (#3218)
Diffstat (limited to 'docs/pl-PL/config/README.md')
-rw-r--r-- | docs/pl-PL/config/README.md | 95 |
1 files changed, 83 insertions, 12 deletions
diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md index 7f07201b4..922e67ff3 100644 --- a/docs/pl-PL/config/README.md +++ b/docs/pl-PL/config/README.md @@ -61,7 +61,7 @@ Moduły wypisują swoje zmienne przy użyciu ciągów formatujących. Większoś #### Zmienne -Zmienna zawiera symbol `$`, po którym następuje nazwa zmiennej. Nazwa zmiennej zawiera tylko litery, cyfry i `_`. +Zmienna zawiera symbol `$`, po którym następuje nazwa zmiennej. The name of a variable can only contain letters, numbers and `_`. Na przykład: @@ -106,18 +106,11 @@ Na przykład: - `(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 + +| Zmienne | 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%. @@ -986,7 +1006,7 @@ default = "unknown user" | Option | Default | Description | | ---------- | ------------------------------ | ---------------------------------------------------------------------------- | | `symbol` | `""` | The symbol used before displaying the variable value. | -| `zmienne` | | The environment variable to be displayed. | +| `variable` | | The environment variable to be displayed. | | `default` | | The default value to be displayed when the selected variable is not defined. | | `format` | `"with [$env_value]($style) "` | The format for the module. | | `disabled` | `false` | Disables the `env_var` module. | @@ -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 + +| Zmienne | 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: |