summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/ar-SA/config/README.md96
-rw-r--r--docs/ar-SA/guide/README.md7
-rw-r--r--docs/ar-SA/presets/README.md278
-rw-r--r--docs/ckb-IR/advanced-config/README.md2
-rw-r--r--docs/ckb-IR/config/README.md96
-rw-r--r--docs/ckb-IR/guide/README.md7
-rw-r--r--docs/ckb-IR/presets/README.md278
-rw-r--r--docs/de-DE/config/README.md156
-rw-r--r--docs/de-DE/guide/README.md7
-rw-r--r--docs/de-DE/presets/README.md278
-rw-r--r--docs/es-ES/config/README.md291
-rw-r--r--docs/es-ES/guide/README.md7
-rw-r--r--docs/es-ES/presets/README.md278
-rw-r--r--docs/fr-FR/config/README.md1111
-rw-r--r--docs/fr-FR/guide/README.md7
-rw-r--r--docs/fr-FR/presets/README.md278
-rw-r--r--docs/it-IT/README.md6
-rw-r--r--docs/it-IT/advanced-config/README.md14
-rw-r--r--docs/it-IT/config/README.md132
-rw-r--r--docs/it-IT/faq/README.md14
-rw-r--r--docs/it-IT/guide/README.md9
-rw-r--r--docs/it-IT/migrating-to-0.45.0/README.md6
-rw-r--r--docs/it-IT/presets/README.md278
-rw-r--r--docs/ja-JP/advanced-config/README.md10
-rw-r--r--docs/ja-JP/config/README.md113
-rw-r--r--docs/ja-JP/guide/README.md7
-rw-r--r--docs/ja-JP/presets/README.md278
-rw-r--r--docs/ko-KR/config/README.md96
-rw-r--r--docs/ko-KR/guide/README.md7
-rw-r--r--docs/ko-KR/presets/README.md278
-rw-r--r--docs/nl-NL/config/README.md96
-rw-r--r--docs/nl-NL/guide/README.md7
-rw-r--r--docs/nl-NL/presets/README.md278
-rw-r--r--docs/pl-PL/config/README.md96
-rw-r--r--docs/pl-PL/guide/README.md7
-rw-r--r--docs/pl-PL/presets/README.md278
-rw-r--r--docs/pt-BR/README.md12
-rw-r--r--docs/pt-BR/advanced-config/README.md4
-rw-r--r--docs/pt-BR/config/README.md342
-rw-r--r--docs/pt-BR/faq/README.md64
-rw-r--r--docs/pt-BR/guide/README.md19
-rw-r--r--docs/pt-BR/installing/README.md32
-rw-r--r--docs/pt-BR/migrating-to-0.45.0/README.md142
-rw-r--r--docs/pt-BR/presets/README.md280
-rw-r--r--docs/pt-PT/config/README.md96
-rw-r--r--docs/pt-PT/guide/README.md7
-rw-r--r--docs/pt-PT/presets/README.md278
-rw-r--r--docs/ru-RU/README.md6
-rw-r--r--docs/ru-RU/config/README.md106
-rw-r--r--docs/ru-RU/guide/README.md15
-rw-r--r--docs/ru-RU/presets/README.md278
-rw-r--r--docs/tr-TR/config/README.md96
-rw-r--r--docs/tr-TR/guide/README.md7
-rw-r--r--docs/tr-TR/presets/README.md278
-rw-r--r--docs/vi-VN/config/README.md98
-rw-r--r--docs/vi-VN/guide/README.md9
-rw-r--r--docs/vi-VN/presets/README.md278
-rw-r--r--docs/zh-CN/config/README.md110
-rw-r--r--docs/zh-CN/guide/README.md7
-rw-r--r--docs/zh-CN/presets/README.md278
-rw-r--r--docs/zh-TW/README.md2
-rw-r--r--docs/zh-TW/config/README.md102
-rw-r--r--docs/zh-TW/faq/README.md54
-rw-r--r--docs/zh-TW/guide/README.md25
-rw-r--r--docs/zh-TW/presets/README.md278
65 files changed, 7212 insertions, 1278 deletions
diff --git a/docs/ar-SA/config/README.md b/docs/ar-SA/config/README.md
index 3ae4b2de5..5ad7d5d51 100644
--- a/docs/ar-SA/config/README.md
+++ b/docs/ar-SA/config/README.md
@@ -389,7 +389,17 @@ The character will tell you whether the last command was successful or not. It c
By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
-::: warning `error_symbol` is not supported on elvish shell. :::
+::: warning
+
+`error_symbol` is not supported on elvish shell.
+
+:::
+
+::: warning
+
+`vicmd_symbol` is only supported in fish and zsh.
+
+:::
### Options
@@ -780,7 +790,6 @@ By default this module will only be shown in your prompt when one or more of the
- `Directory.Build.props`
- `Directory.Build.targets`
- `Packages.props`
-- `*.sln`
- `*.csproj`
- `*.fsproj`
- `*.xproj`
@@ -799,7 +808,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `".NET "` | The symbol used before displaying the version of dotnet. |
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
-| `detect_extensions` | `["sln", "csproj", "fsproj", "xproj"]` | Which extensions should trigger this module. |
+| `detect_extensions` | `["csproj", "fsproj", "xproj"]` | Which extensions should trigger this module. |
| `detect_files` | `["global.json", "project.json", "Directory.Build.props", "Directory.Build.targets", "Packages.props"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `style` | `"bold blue"` | The style for the module. |
@@ -2165,6 +2174,59 @@ python_binary = "python3"
detect_extensions = []
```
+```toml
+# ~/.config/starship.toml
+
+[python]
+# Display the version of python from inside a local venv.
+#
+# Note this will only work when the venv is inside the project and it will only
+# work in the directory that contains the venv dir but maybe this is ok?
+python_binary = ["./venv/bin/python", "python", "python3", "python2"]
+```
+
+## R
+
+The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+
+- The current directory contains a file with the `.R` extension.
+- The current directory contains a file with the `.Rd` extension.
+- The current directory contains a file with the `.Rmd` extension.
+- The current directory contains a file with the `.Rproj` extension.
+- The current directory contains a file with the `.Rsx` extension.
+- The current directory contains a `.Rprofile` file
+- The current directory contains a `.Rproj.user` folder
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"📐"` | A format string representing the symbol of R. |
+| `style` | `"blue bold"` | The style for the module. |
+| `detect_extensions` | `["R", "Rd", "Rmd", "Rproj", "Rsx"]` | Which extensions should trigger this module |
+| `detect_files` | `[".Rprofile"]` | Which filenames should trigger this module |
+| `detect_folders` | `[".Rproj.user"]` | Which folders should trigger this module |
+| `disabled` | `false` | Disables the `r` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| -------- | ------------- | ------------------------------------ |
+| version | `v4.0.5` | The version of `R` |
+| symbol | | Mirrors the value of option `symbol` |
+| style | `"blue bold"` | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[rlang]
+format = "with [📐 $version](blue bold) "
+```
+
## Red
By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
@@ -2831,6 +2893,7 @@ These modules will be shown if any of the following conditions are met:
- The current directory contains a directory whose name is in `directories`
- The current directory contains a file whose extension is in `extensions`
- The `when` command returns 0
+- The current Operating System (std::env::consts::OS) matchs with `os` field if defined.
::: tip
@@ -2852,19 +2915,20 @@ The order in which custom modules are shown can be individually set by including
### Options
-| Option | Default | Description |
-| ------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
-| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
-| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
-| `shell` | | [See below](#custom-command-shell) |
-| `description` | `"<custom module>"` | The description of the module that is shown when running `starship explain`. |
-| `files` | `[]` | The files that will be searched in the working directory for a match. |
-| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
-| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
-| `symbol` | `""` | The symbol used before displaying the command output. |
-| `style` | `"bold green"` | The style for the module. |
-| `format` | `"[$symbol($output )]($style)"` | The format for the module. |
-| `disabled` | `false` | Disables this `custom` module. |
+| Option | Default | Description |
+| ------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
+| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
+| `shell` | | [See below](#custom-command-shell) |
+| `description` | `"<custom module>"` | The description of the module that is shown when running `starship explain`. |
+| `files` | `[]` | The files that will be searched in the working directory for a match. |
+| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
+| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
+| `symbol` | `""` | The symbol used before displaying the command output. |
+| `style` | `"bold green"` | The style for the module. |
+| `format` | `"[$symbol($output )]($style)"` | The format for the module. |
+| `disabled` | `false` | Disables this `custom` module. |
+| `os` | | Operating System name on which the module will be shown (unix, linux, macos, windows, ... ) [See possible values](https://doc.rust-lang.org/std/env/consts/constant.OS.html). |
### Variables
diff --git a/docs/ar-SA/guide/README.md b/docs/ar-SA/guide/README.md
index 4d59303fd..985c61a40 100644
--- a/docs/ar-SA/guide/README.md
+++ b/docs/ar-SA/guide/README.md
@@ -163,6 +163,13 @@
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ **Note** - The defaults of the install script can be overridden see the built-in help.
+
+ ```sh
+ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --help
+ ```
+
+
#### Install via Package Manager
diff --git a/docs/ar-SA/presets/README.md b/docs/ar-SA/presets/README.md
index a039ba8da..123974b2b 100644
--- a/docs/ar-SA/presets/README.md
+++ b/docs/ar-SA/presets/README.md
@@ -81,6 +81,284 @@ symbol = " "
[scala]
symbol = " "
+[shlvl]
+symbol = " "
+
[swift]
symbol = "ﯣ "
```
+
+## Bracketed Segments
+
+This preset changes the format of all the built-in modules to show their segment in brackets instead of using the default Starship wording ("via", "on", etc.).
+
+Before:
+
+![Screenshot of default Starship configuration](/presets/bracketed-segments-before.png)
+
+After:
+
+![Screenshot of Bracketed Segments preset](/presets/bracketed-segments-after.png)
+
+### Configuration
+
+```toml
+[aws]
+format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
+
+[cmake]
+format = '\[[$symbol($version)]($style)\]'
+
+[cmd_duration]
+format = "[⏱ $duration]($style)"
+
+[conda]
+format = '\[[$symbol$environment]($style)\]'
+
+[crystal]
+format = '\[[$symbol($version)]($style)\]'
+
+[dart]
+format = '\[[$symbol($version)]($style)\]'
+
+[deno]
+format = '\[[$symbol($version)]($style)\]'
+
+[docker_context]
+format = '\[[$symbol$context]($style)\]'
+
+[dotnet]
+format = '\[[$symbol($version)(🎯 $tfm)]($style)\]'
+
+[elixir]
+format = '\[[$symbol($version \(OTP $otp_version\))]($style)\]'
+
+[elm]
+format = '\[[$symbol($version)]($style)\]'
+
+[erlang]
+format = '\[[$symbol($version)]($style)\]'
+
+[gcloud]
+format = '\[[$symbol$account(@$domain)(\($region\))]($style)\]'
+
+[git_branch]
+format = '\[[$symbol$branch]($style)\]'
+
+[git_status]
+format = '([\[$all_status$ahead_behind\]]($style))'
+
+[golang]
+format = '\[[$symbol($version)]($style)\]'
+
+[helm]
+format = '\[[$symbol($version)]($style)\]'
+
+[hg_branch]
+format = '\[[$symbol$branch]($style)\]'
+
+[java]
+format = '\[[$symbol($version)]($style)\]'
+
+[julia]
+format = '\[[$symbol($version)]($style)\]'
+
+[kotlin]
+format = '\[[$symbol($version)]($style)\]'
+
+[kubernetes]
+format = '\[[$symbol$context( \($namespace\))]($style)\]'
+
+[lua]
+format = '\[[$symbol($version)]($style)\]'
+
+[memory_usage]
+format = '\[$symbol[$ram( | $swap)]($style)\]'
+
+[nim]
+format = '\[[$symbol($version)]($style)\]'
+
+[nix_shell]
+format = '\[[$symbol$state( \($name\))]($style)\]'
+
+[nodejs]
+format = '\[[$symbol($version)]($style)\]'
+
+[ocaml]
+format = '\[[$symbol($version)(\($switch_indicator$switch_name\))]($style)\]'
+
+[openstack]
+format = '\[[$symbol$cloud(\($project\))]($style)\]'
+
+[package]
+format = '\[[$symbol$version]($style)\]'
+
+[perl]
+format = '\[[$symbol($version)]($style)\]'
+
+[php]
+format = '\[[$symbol($version)]($style)\]'
+
+[purescript]
+format = '\[[$symbol($version)]($style)\]'
+
+[python]
+format = '\[[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
+
+[red]
+format = '\[[$symbol($version)]($style)\]'
+
+[ruby]
+format = '\[[$symbol($version)]($style)\]'
+
+[rust]
+format = '\[[$symbol($version)]($style)\]'
+
+[scala]
+format = '\[[$symbol($version)]($style)\]'
+
+[swift]
+format = '\[[$symbol($version)]($style)\]'
+
+[terraform]
+format = '\[[$symbol$workspace]($style)\]'
+
+[time]
+format = '\[[$time]($style)\]'
+
+[username]
+format = '\[[$user]($style)\]'
+
+[vagrant]
+format = '\[[$symbol($version)]($style)\]'
+
+[vlang]
+format = '\[[$symbol($version)]($style)\]'
+
+[zig]
+format = '\[[$symbol($version)]($style)\]'
+```
+
+## Plain Text Symbols
+
+This preset changes the symbols into plain text. If your terminal/font could not render the NerdFonts/emojis, maybe you could try this preset!
+
+Before (default setting with Fixedsys font):
+
+![Screenshot of default Starship configuration with Fixedsys font](/presets/plain-text-symbols-before.png)
+
+After (Plain Text Symbols):
+
+![Screenshot of Plain Text Symbols preset](/presets/plain-text-symbols-after.png)
+
+### Configuration
+
+```toml
+[character]
+success_symbol = "[>](bold green)"
+error_symbol = "[x](bold red)"
+vicmd_symbol = "[<](bold green)"
+
+[git_commit]
+tag_symbol = " tag "
+
+[git_status]
+ahead = ">"
+behind = "<"
+diverged = "<>"
+renamed = "r"
+deleted = "x"
+
+[aws]
+symbol = "aws "
+
+[conda]
+symbol = "conda "
+
+[crystal]
+symbol = "cr "
+
+[cmake]
+symbol = "cmake "
+
+[dart]
+symbol = "dart "
+
+[deno]
+symbol = "deno "
+
+[dotnet]
+symbol = ".NET "
+
+[directory]
+read_only = " ro"
+
+[docker_context]
+symbol = "docker "
+
+[elixir]
+symbol = "exs "
+
+[elm]
+symbol = "elm "
+
+[git_branch]
+symbol = "git "
+
+[golang]
+symbol = "go "
+
+[hg_branch]
+symbol = "hg "
+
+[java]
+symbol = "java "
+
+[julia]
+symbol = "jl "
+
+[kotlin]
+symbol = "kt "
+
+[nodejs]
+symbol = "nodejs "
+
+[memory_usage]
+symbol = "memory "
+
+[nim]
+symbol = "nim "
+
+[nix_shell]
+symbol = "nix "
+
+[ocaml]
+symbol = "ml "
+
+[package]
+symbol = "pkg "
+
+[perl]
+symbol = "pl "
+
+[php]
+symbol = "php "
+
+[purescript]
+symbol = "purs "
+
+[python]
+symbol = "py "
+
+[ruby]
+symbol = "rb "
+
+[rust]
+symbol = "rs "
+
+[scala]
+symbol = "scala "
+
+[swift]
+symbol = "swift "
+```
diff --git a/docs/ckb-IR/advanced-config/README.md b/docs/ckb-IR/advanced-config/README.md
index 28b9845d5..8eb611d27 100644
--- a/docs/ckb-IR/advanced-config/README.md
+++ b/docs/ckb-IR/advanced-config/README.md
@@ -1,4 +1,4 @@
-# Advanced Configuration
+# ڕێکخستنی پێشکەوتوو
While Starship is a versatile shell, sometimes you need to do more than edit `starship.toml` to get it to do certain things. This page details some of the more advanced configuration techniques used in starship.
diff --git a/docs/ckb-IR/config/README.md b/docs/ckb-IR/config/README.md
index 3ae4b2de5..5ad7d5d51 100644
--- a/docs/ckb-IR/config/README.md
+++ b/docs/ckb-IR/config/README.md
@@ -389,7 +389,17 @@ The character will tell you whether the last command was successful or not. It c
By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
-::: warning `error_symbol` is not supported on elvish shell. :::
+::: warning
+
+`error_symbol` is not supported on elvish shell.
+
+:::
+
+::: warning
+
+`vicmd_symbol` is only supported in fish and zsh.
+
+:::
### Options