and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/ar-SA/config/README.md b/docs/ar-SA/config/README.md
index aa5b0a171..ae8067c93 100644
--- a/docs/ar-SA/config/README.md
+++ b/docs/ar-SA/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Options
+
+| Option | الافتراضي | الوصف |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | مثال | الوصف |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+### مثال
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | الافتراضي | الوصف |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | مثال | الوصف |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### مثال
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | الافتراضي | الوصف |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | مثال | الوصف |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+### مثال
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/ar-SA/faq/README.md b/docs/ar-SA/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/ar-SA/faq/README.md
+++ b/docs/ar-SA/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/ar-SA/guide/README.md b/docs/ar-SA/guide/README.md
index c10cf9a84..941f4b9be 100644
--- a/docs/ar-SA/guide/README.md
+++ b/docs/ar-SA/guide/README.md
@@ -431,6 +431,8 @@ If you're looking to further customize Starship:
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/ar-SA/installing/README.md b/docs/ar-SA/installing/README.md
index 941653559..b8c10edd2 100644
--- a/docs/ar-SA/installing/README.md
+++ b/docs/ar-SA/installing/README.md
@@ -45,7 +45,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### احصل على ملفات الباينري
diff --git a/docs/bn-BD/README.md b/docs/bn-BD/README.md
index a9d666010..862410bc0 100644
--- a/docs/bn-BD/README.md
+++ b/docs/bn-BD/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
---
+
+
diff --git a/docs/bn-BD/advanced-config/README.md b/docs/bn-BD/advanced-config/README.md
index d110b7a42..5b15045af 100644
--- a/docs/bn-BD/advanced-config/README.md
+++ b/docs/bn-BD/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/bn-BD/config/README.md b/docs/bn-BD/config/README.md
index 54df074d1..ae2306a56 100644
--- a/docs/bn-BD/config/README.md
+++ b/docs/bn-BD/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/bn-BD/faq/README.md b/docs/bn-BD/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/bn-BD/faq/README.md
+++ b/docs/bn-BD/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/bn-BD/guide/README.md b/docs/bn-BD/guide/README.md
index c96afd384..14a7e8590 100644
--- a/docs/bn-BD/guide/README.md
+++ b/docs/bn-BD/guide/README.md
@@ -431,6 +431,8 @@ eval "$(starship init zsh)"
[একজন স্পনসর হয়ে](https://github.com/sponsors/starship) এই প্রোজেক্টটিকে আর্থিক ভাবে সহায়তা করুন । আপনার নাম অথবা লোগো নিম্নে দেখা যাবে আপনার ওয়েবসাইট এর লিঙ্ক সহ ।
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/bn-BD/installing/README.md b/docs/bn-BD/installing/README.md
index 3004e3976..a5ad88c05 100644
--- a/docs/bn-BD/installing/README.md
+++ b/docs/bn-BD/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/ckb-IR/README.md b/docs/ckb-IR/README.md
index 13fa363b4..60607286f 100644
--- a/docs/ckb-IR/README.md
+++ b/docs/ckb-IR/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: یەکێ لە Promptـە شێڵ نەناسەکان"
description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و بێسنور دڵخوازکراوەکان بۆ هەر شێڵێک! ئەو زانیارییانە پشان دەدات کە پێویستە، لەوکاتەیا بە ئارامی و سوکەڵەیی ئەمێنێتەوە. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.'
---
+
+
diff --git a/docs/ckb-IR/advanced-config/README.md b/docs/ckb-IR/advanced-config/README.md
index b2c35e2ab..4fdbcdc44 100644
--- a/docs/ckb-IR/advanced-config/README.md
+++ b/docs/ckb-IR/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/ckb-IR/config/README.md b/docs/ckb-IR/config/README.md
index 5303747b3..bc4eba5ba 100644
--- a/docs/ckb-IR/config/README.md
+++ b/docs/ckb-IR/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| گۆڕاو | نموونە | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+### نموونە
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| گۆڕاو | نموونە | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### نموونە
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| گۆڕاو | نموونە | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+### نموونە
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/ckb-IR/faq/README.md b/docs/ckb-IR/faq/README.md
index c8f23ff89..6bfa3dc0e 100644
--- a/docs/ckb-IR/faq/README.md
+++ b/docs/ckb-IR/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/ckb-IR/guide/README.md b/docs/ckb-IR/guide/README.md
index ec24904f2..f1755ecb3 100644
--- a/docs/ckb-IR/guide/README.md
+++ b/docs/ckb-IR/guide/README.md
@@ -427,6 +427,8 @@ If you're looking to further customize Starship:
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/ckb-IR/installing/README.md b/docs/ckb-IR/installing/README.md
index b11ace618..d7fe7b292 100644
--- a/docs/ckb-IR/installing/README.md
+++ b/docs/ckb-IR/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/de-DE/README.md b/docs/de-DE/README.md
index 4230f5aba..cf87d9498 100644
--- a/docs/de-DE/README.md
+++ b/docs/de-DE/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship ist eine minimale, super schnelle, und extrem anpassbare Prompt für jede Shell! Sie zeigt die Information, die man benötigt an, während sie schnell und minimal bleibt. Schnell-Installation verfügbar für Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, und PowerShell.
---
+
+
diff --git a/docs/de-DE/advanced-config/README.md b/docs/de-DE/advanced-config/README.md
index 40edb107d..0298bb9ef 100644
--- a/docs/de-DE/advanced-config/README.md
+++ b/docs/de-DE/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Hinweis: Fortsetzungs-Prompts sind nur für folgende Shells verfügbar:
```toml
# ~/.config/starship.toml
-# Ein Fortsetzungs-Prompt der 2 ausgefüllte Pfeile darstellt
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Wenn mehrere Farben für Vordergrund oder Hintergrund angegeben werden, hat die
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/de-DE/config/README.md b/docs/de-DE/config/README.md
index 869419259..9c3cd9209 100644
--- a/docs/de-DE/config/README.md
+++ b/docs/de-DE/config/README.md
@@ -282,6 +282,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -325,6 +326,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -602,7 +604,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Das Format für das Modul. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1967,6 +1969,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Optionen
+
+| Option | Standartwert | Beschreibung |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Das Format für das Modul. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | A format string representing the symbol of Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | Stil für dieses Modul. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Beispiel | Beschreibung |
+| --------- | -------- | ------------------------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| symbol | | Spiegelt den Wert der Option `symbol` |
+| style\* | | Spiegelt den Wert der Option `style` |
+
+*: This variable can only be used as a part of a style string
+
+### Beispiel
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2445,7 +2485,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
Dieses Modul ist standardmäßig deaktiviert. Setze in deiner Konfiguration `disabled` auf `false` um es zu aktivieren.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2467,6 +2507,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Deaktiviert das `kubernetes`-Modul. |
@@ -2769,6 +2810,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Optionen
+
+| Option | Standartwert | Beschreibung |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Stil für dieses Modul. |
+| `format` | `'[$symbol$name]($style)'` | Das Format für das Modul. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Beispiel | Beschreibung |
+| --------- | ----------- | ------------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Spiegelt den Wert der Option `symbol` |
+| style\* | | Spiegelt den Wert der Option `style` |
+
+### Beispiel
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2944,6 +3014,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Optionen
+
+| Option | Standartwert | Beschreibung |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Das Format für das Modul. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | Stil für dieses Modul. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | Beispiel | Beschreibung |
+| --------- | ------------- | ------------------------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | Spiegelt den Wert der Option `symbol` |
+| style\* | | Spiegelt den Wert der Option `style` |
+
+*: This variable can only be used as a part of a style string
+
+### Beispiel
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3812,7 +3919,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4242,6 +4349,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | Das Format für das Modul. |
| `show_always` | `false` | Immer das `username` Modul anzeigen. |
| `disabled` | `false` | Deavktiviert das `username` Modul. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4263,6 +4371,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/de-DE/faq/README.md b/docs/de-DE/faq/README.md
index a4c79378b..354238f1f 100644
--- a/docs/de-DE/faq/README.md
+++ b/docs/de-DE/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/de-DE/guide/README.md b/docs/de-DE/guide/README.md
index b84883e51..ca54da23b 100644
--- a/docs/de-DE/guide/README.md
+++ b/docs/de-DE/guide/README.md
@@ -431,6 +431,8 @@ Schaut euch bitte auch die Projekte an, die die Entstehung von Starship inspirie
Unterstütze dieses Projekt, indem du [ein Sponsor wirst](https://github.com/sponsors/starship). Dein Name und Logo wird hier mit einem Link zu deiner Website erscheinen.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/de-DE/installing/README.md b/docs/de-DE/installing/README.md
index 5779d264e..96d044f1a 100644
--- a/docs/de-DE/installing/README.md
+++ b/docs/de-DE/installing/README.md
@@ -45,7 +45,7 @@ Unter Funtoo Linux kann starship von [core-kit](https://github.com/funtoo/core-k
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Das Binary holen
diff --git a/docs/es-ES/README.md b/docs/es-ES/README.md
index c2a6ab56d..e547cf92f 100644
--- a/docs/es-ES/README.md
+++ b/docs/es-ES/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: el prompt multi-intérprete"
description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos! Muestra la información que necesitas, a la par que es elegante y minimalista. Instalación rápida disponible para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, y PowerShell.'
---
+
+
diff --git a/docs/es-ES/advanced-config/README.md b/docs/es-ES/advanced-config/README.md
index 4feaeb080..5cad65611 100644
--- a/docs/es-ES/advanced-config/README.md
+++ b/docs/es-ES/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. Esto es útil en los casos en que la información del prompt no es siempre necesaria. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. Por ejemplo, para mostrar la hora en la que se inició el último comando aquí, lo harías
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Comandos pre-prompt y pre-ejecución personalizados en Cmd
@@ -266,7 +266,7 @@ Nota: Los prompts de continuación solo están disponibles en los siguientes int
```toml
# ~/.config/starship.toml
-# Un prompt de continuación que muestra dos flechas rellenas
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Si se especifican varios colores para el primer plano/fondo, el último en la ca
No todas las cadenas de estilo se mostrarán correctamente en cada terminal. En particular, existen las siguientes rarezas conocidas:
-- Muchos terminales deshabilitan el soporte para `parpadear` por defecto
+- Muchos terminales deshabilitan el soporte para `parpadear` por defecto.
- `hiden` no es [compatible con iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` no está soportado por macOS Terminal.app por defecto
+- `strikethrough` no está soportado por macOS Terminal.app por defecto.
diff --git a/docs/es-ES/config/README.md b/docs/es-ES/config/README.md
index ec316956c..2bcbce9df 100644
--- a/docs/es-ES/config/README.md
+++ b/docs/es-ES/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | --------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Qué nombres de archivo deberían activar este módulo. |
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
@@ -1966,6 +1968,44 @@ Usar el ejecutable de Starship de Windows en las rutas de Windows en WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Opciones
+
+| Opción | Predeterminado | Descripción |
+| ------------------- | ------------------------------------ | --------------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
+| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | Una cadena de formato que representa el símbolo de Go. |
+| `detect_extensions` | `['gleam']` | Qué extensiones deberían activar este módulo. |
+| `detect_files` | `['gleam.toml']` | Qué nombres de archivo deberían activar este módulo. |
+| `style` | `'bold #FFAFF3'` | El estilo del módulo. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Ejemplo | Descripción |
+| --------- | -------- | -------------------------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| symbol | | Refleja el valor de la opción `symbol` |
+| style\* | | Refleja el valor de la opción `style` |
+
+*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
+
+### Ejemplo
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
El módulo `golang` muestra la versión instalada de [Go](https://golang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
@@ -2444,7 +2484,7 @@ Muestra el nombre actual del [contexto de Kubernetes](https://kubernetes.io/docs
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` como `false` en tu archivo de configuración.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
| `detect_files` | `[]` | Qué nombres de archivo deberían activar este módulo. |
| `detect_folders` | `[]` | Qué carpetas deberían activar estos módulos. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contextos` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Desactiva el módulo `kubernetes`. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Opciones
+
+| Opción | Predeterminado | Descripción |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | El estilo del módulo. |
+| `format` | `'[$symbol$name]($style)'` | El formato del módulo. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Ejemplo | Descripción |
+| --------- | ----------- | -------------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Refleja el valor de la opción `symbol` |
+| style\* | | Refleja el valor de la opción `style` |
+
+### Ejemplo
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
El módulo `nim` muestra la versión instalada de [Nim](https://nim-lang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
@@ -2943,6 +3013,43 @@ El módulo `ocaml` muestra la versión instalada de [OCaml](https://ocaml.org/).
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Opciones
+
+| Opción | Predeterminado | Descripción |
+| ------------------- | ------------------------------------ | ---------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | El símbolo usado antes de mostrar la versión de Zig. |
+| `style` | `'bold bright-blue'` | El estilo del módulo. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Qué extensiones deberían activar este módulo. |
+| `detect_files` | `[]` | Qué nombres de archivo deberían activar este módulo. |
+| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
+
+### Variables
+
+| Variable | Ejemplo | Descripción |
+| --------- | ------------- | -------------------------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | Refleja el valor de la opción `symbol` |
+| style\* | | Refleja el valor de la opción `style` |
+
+*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
+
+### Ejemplo
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ La conexión SSH se detecta comprobando las variables de entorno `SSH_CONNECTION
| `format` | `'[$user]($style) in '` | El formato del módulo. |
| `show_always` | `false` | Siempre muestra el módulo `username`. |
| `disabled` | `false` | Deshabilita el módulo `username`. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Ocultar el nombre de host en sesiones remotas de tmux
diff --git a/docs/es-ES/faq/README.md b/docs/es-ES/faq/README.md
index eeef3bb48..4acf89f06 100644
--- a/docs/es-ES/faq/README.md
+++ b/docs/es-ES/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(comando -v 'starship')"'
## ¿Cómo instalo Starship sin `sudo`?
-El script de instalación del shell (`https://starship.rs/install.sh`) solo intenta usar `sudo` si el directorio de instalación no es escribible para el usuario actual. El directorio de instalación por defecto es el valor de la variable de entorno `$BIN_DIR` o `/usr/local/bin` si `$BIN_DIR` no está establecido. Si en su lugar establece el directorio de instalación a uno que tenga permisos de escritura para su usuario, deberías ser capaz de instalar starship sin `sudo`. Por ejemplo, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` usa la opción de línea de comando `b` del script de instalación para establecer el directorio de instalación a `~/.local/bin`.
+El script de instalación del shell (`https://starship.rs/install.sh`) solo intenta usar `sudo` si el directorio de instalación no es escribible para el usuario actual. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. Si en su lugar establece el directorio de instalación a uno que tenga permisos de escritura para su usuario, deberías ser capaz de instalar starship sin `sudo`. Por ejemplo, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` usa la opción de línea de comando `b` del script de instalación para establecer el directorio de instalación a `~/.local/bin`.
Para una instalación no interactiva de Starship, no te olvides de añadir la opción `y` para omitir la confirmación. Consulte la fuente del script de instalación para ver una lista de todas las opciones de instalación soportadas.
diff --git a/docs/es-ES/guide/README.md b/docs/es-ES/guide/README.md
index af421e5dc..d19341006 100644
--- a/docs/es-ES/guide/README.md
+++ b/docs/es-ES/guide/README.md
@@ -431,6 +431,8 @@ Por favor, revisa estas obras anteriores que ayudaron a inspirar la creación de
Apoya este proyecto [convirtiéndote en patrocinador](https://github.com/sponsors/starship). Tu nombre o logo aparecerá aquí con un enlace a tu sitio web.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/es-ES/installing/README.md b/docs/es-ES/installing/README.md
index 5f457237c..eb49b9dc0 100644
--- a/docs/es-ES/installing/README.md
+++ b/docs/es-ES/installing/README.md
@@ -45,7 +45,7 @@ En Funtoo Linux, Starship puede instalarse desde [core-kit](https://github.com/f
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Obtener el binario
diff --git a/docs/fr-FR/README.md b/docs/fr-FR/README.md
index a7557be96..7e8431268 100644
--- a/docs/fr-FR/README.md
+++ b/docs/fr-FR/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship : Invite Multi-Shell"
description: Starship est une invite minimaliste, ultra-rapide et hautement personnalisable pour n'importe quel shell ! Montre les informations dont vous avez besoin tout en restant élégante et minimaliste. Installation rapide disponible pour Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, et PowerShell.
---
+
+
diff --git a/docs/fr-FR/advanced-config/README.md b/docs/fr-FR/advanced-config/README.md
index 63c2caeb7..eb416f948 100644
--- a/docs/fr-FR/advanced-config/README.md
+++ b/docs/fr-FR/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. Par exemple, pour afficher l'heure à laquelle la dernière commande a été lancée ici, vous feriez
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Commandes pré-invite et pré-exécution personnalisées dans Cmd
@@ -266,7 +266,7 @@ Note: les invites de confirmation sont uniquement disponibles pour les shells su
```toml
# ~/.config/starship.toml
-# Un invite de continuation qui affiche deux flèches pleines
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Si plusieurs couleurs sont définies pour l’avant-plan/arrière-plan, la derni
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md
index 97f081518..042fb01de 100644
--- a/docs/fr-FR/config/README.md
+++ b/docs/fr-FR/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
-| `symbole` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbole` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensionsdetect_extensions` | `[]` | Les extensions qui déclenchent ce module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
@@ -1966,6 +1968,44 @@ Utiliser un exécutable Starship Windows pour les chemins Windows dans WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). Par défaut, le module sera affiché si l’une de ces conditions est remplie:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Options
+
+| Option | Défaut | Description |
+| ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
+| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `symbole` | `'⭐ '` | Une chaîne de caractères représentant le symbole de Go. |
+| `detect_extensionsdetect_extensions` | `['gleam']` | Les extensions qui déclenchent ce module. |
+| `detect_files` | `['gleam.toml']` | Les fichiers qui activent ce module. |
+| `style` | `'bold #FFAFF3'` | Le style pour le module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Exemple | Description |
+| --------- | -------- | -------------------------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| symbole | | Reflète la valeur de l'option `symbol` |
+| style\* | | Reflète la valeur de l'option `style` |
+
+*: Cette variable peut uniquement être utilisée dans une chaine de style
+
+### Exemple
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
Le module `golang` affiche la version de [Go](https://golang.org/) installée. Par défaut, le module sera affiché si l’une de ces conditions est remplie:
@@ -2444,7 +2484,7 @@ Afficher le nom du [contexte Kubernetes](https://kubernetes.io/docs/concepts/con
Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensionsdetect_extensions` | `[]` | Les extensions qui déclenchent ce module. |
| `detect_files` | `[]` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Quels dossiers devraient activer ce module. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Désactiver le module `kubernetes`. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Défaut | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbole` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Le style pour le module. |
+| `format` | `'[$symbol$name]($style)'` | Format du module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Exemple | Description |
+| --------- | ----------- | -------------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbole | | Reflète la valeur de l'option `symbol` |
+| style\* | | Reflète la valeur de l'option `style` |
+
+### Exemple
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
Le module `nim` affiche la version de [Nim](https://nim-lang.org/) installée. Par défaut, le module sera affiché si l’une de ces conditions est remplie:
@@ -2943,6 +3013,43 @@ Le module `ocaml` affiche la version de [OCaml](https://ocaml.org/) installée.
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Défaut | Description |
+| ------------------------------------ | ------------------------------------ | ------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbole` | `'Ø '` | Le symbole utilisé avant d'afficher la version de Zig. |
+| `style` | `'bold bright-blue'` | Le style pour le module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensionsdetect_extensions` | `['odin']` | Les extensions qui déclenchent ce module. |
+| `detect_files` | `[]` | Les fichiers qui activent ce module. |
+| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
+
+### Variables
+
+| Variable | Exemple | Description |
+| --------- | ------------- | -------------------------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbole | | Reflète la valeur de l'option `symbol` |
+| style\* | | Reflète la valeur de l'option `style` |
+
+*: Cette variable peut uniquement être utilisée dans une chaine de style
+
+### Exemple
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | Format du module. |
| `show_always` | `false` | Toujours afficher le module `username`. |
| `disabled` | `false` | Désactive le module `username`. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/fr-FR/faq/README.md b/docs/fr-FR/faq/README.md
index d474eb6ff..fc4eebfe7 100644
--- a/docs/fr-FR/faq/README.md
+++ b/docs/fr-FR/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md
index 03ddb1cb4..077d2fbb7 100644
--- a/docs/fr-FR/guide/README.md
+++ b/docs/fr-FR/guide/README.md
@@ -431,6 +431,8 @@ Voyez ces travaux précédents qui ont contribué à inspirer la création de St
Soutenez ce projet en [devenant un collaborateur](https://github.com/sponsors/starship). Votre nom ou logo apparaîtra ici avec un lien vers votre site Web.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/fr-FR/installing/README.md b/docs/fr-FR/installing/README.md
index acb135dca..046314b45 100644
--- a/docs/fr-FR/installing/README.md
+++ b/docs/fr-FR/installing/README.md
@@ -45,7 +45,7 @@ Sur Funtoo Linux, starship peut être installé à partir de [core-kit](https://
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Obtention du binaire
diff --git a/docs/id-ID/README.md b/docs/id-ID/README.md
index 1bf25cd32..8e6b7bd16 100644
--- a/docs/id-ID/README.md
+++ b/docs/id-ID/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Prompt Lintas Shell"
description: Starship merupakan sebuah prompt yang minimal, super cepat, dan sangat bisa untuk dikustomisasi untuk shell apapun! Bisa menampilkan informasi yang kamu butuhkan, namun tetap bisa tampil dengan ramping dan minimal. Instalasi sederhana tersedia untuk Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, dan PowerShell.
---
+
+
diff --git a/docs/id-ID/advanced-config/README.md b/docs/id-ID/advanced-config/README.md
index 927007f03..2789af940 100644
--- a/docs/id-ID/advanced-config/README.md
+++ b/docs/id-ID/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Kustomisasi Perintah pre-prompt dan pre-execution Pada Cmd
@@ -266,7 +266,7 @@ Catatan: Continuation prompts hanya tersedia pada beberapa shells berikut:
```toml
# ~/.config/starship.toml
-# Continuation prompt yang menampilkan dua panah solid
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Jika warna yang dipakai pada latar depan/latar belakang banyak, maka warna yang
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/id-ID/config/README.md b/docs/id-ID/config/README.md
index aa5cb32ee..5e12c70bf 100644
--- a/docs/id-ID/config/README.md
+++ b/docs/id-ID/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | A format string representing the symbol of Go. |
+| `detect_extensions` | `['gleam']` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `['gleam.toml']` | filenames mana yang sebaiknya memicu modul ini. |
+| `style` | `'bold #FFAFF3'` | Gaya penataan untuk modul. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variabel
+
+| Variabel | Contoh | Deskripsi |
+| --------- | -------- | --------------------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| symbol | | Menyalin nilai dari opsi `symbol` |
+| style\* | | Menyalin nilai dari opsi `style` |
+
+*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+
+### Contoh
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
@@ -1984,7 +2024,7 @@ The `golang` module shows the currently installed version of [Go](https://golang
| Opsi | Bawaan | Deskripsi |
| ------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🐹 '` | A format string representing the symbol of Go. |
| `detect_extensions` | `['go']` | Ekstensi mana yang sebaiknya memicu modul ini. |
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Gaya penataan untuk modul. |
+| `fromat` | `'[$symbol$name]($style)'` | Format dari modul. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variabel
+
+| Variabel | Contoh | Deskripsi |
+| --------- | ----------- | --------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Menyalin nilai dari opsi `symbol` |
+| style\* | | Menyalin nilai dari opsi `style` |
+
+### Contoh
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | Gaya penataan untuk modul. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
+| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+
+### Variabel
+
+| Variabel | Contoh | Deskripsi |
+| --------- | ------------- | --------------------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | Menyalin nilai dari opsi `symbol` |
+| style\* | | Menyalin nilai dari opsi `style` |
+
+*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+
+### Contoh
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `fromat` | `'[$user]($style) in '` | Format dari modul. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variabel
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/id-ID/faq/README.md b/docs/id-ID/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/id-ID/faq/README.md
+++ b/docs/id-ID/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/id-ID/guide/README.md b/docs/id-ID/guide/README.md
index 9f773cbb2..bf9e3ad95 100644
--- a/docs/id-ID/guide/README.md
+++ b/docs/id-ID/guide/README.md
@@ -431,6 +431,8 @@ Please check out these previous works that helped inspire the creation of starsh
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/id-ID/installing/README.md b/docs/id-ID/installing/README.md
index f0828d9b4..bbcf99e88 100644
--- a/docs/id-ID/installing/README.md
+++ b/docs/id-ID/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/it-IT/README.md b/docs/it-IT/README.md
index 85e6f0994..da033b4c8 100644
--- a/docs/it-IT/README.md
+++ b/docs/it-IT/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
---
+
+
diff --git a/docs/it-IT/advanced-config/README.md b/docs/it-IT/advanced-config/README.md
index 415b5768e..e10cf56c1 100644
--- a/docs/it-IT/advanced-config/README.md
+++ b/docs/it-IT/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Se sono specificati più colori per il primo piano/sfondo, l'ultimo nella string
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/it-IT/config/README.md b/docs/it-IT/config/README.md
index c567a3d40..79aa2af99 100644
--- a/docs/it-IT/config/README.md
+++ b/docs/it-IT/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Opzioni
+
+| Opzione | Default | Descrizione |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | A format string representing the symbol of Go. |
+| `detect_extensions` | `['gleam']` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `['gleam.toml']` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `style` | `'bold #FFAFF3'` | Lo stile per il modulo. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Esempio | Descrizione |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+### Esempio
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Opzioni
+
+| Opzione | Default | Descrizione |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Lo stile per il modulo. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Esempio | Descrizione |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Esempio
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Opzioni
+
+| Opzione | Default | Descrizione |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | Lo stile per il modulo. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
+
+### Variables
+
+| Variable | Esempio | Descrizione |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+### Esempio
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/it-IT/faq/README.md b/docs/it-IT/faq/README.md
index b9f10de4e..3532426a7 100644
--- a/docs/it-IT/faq/README.md
+++ b/docs/it-IT/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/it-IT/guide/README.md b/docs/it-IT/guide/README.md
index 295c9eb52..2fa7cb570 100644
--- a/docs/it-IT/guide/README.md
+++ b/docs/it-IT/guide/README.md
@@ -431,6 +431,8 @@ Ti invito di controllare questi lavori precedenti che hanno contribuito a ispira
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/it-IT/installing/README.md b/docs/it-IT/installing/README.md
index 4fe9a47c1..4bffd43d5 100644
--- a/docs/it-IT/installing/README.md
+++ b/docs/it-IT/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Ottenere il Binario
diff --git a/docs/ja-JP/README.md b/docs/ja-JP/README.md
index 9c921c31b..d59813b83 100644
--- a/docs/ja-JP/README.md
+++ b/docs/ja-JP/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, PowerShellで簡単に利用できます。
---
+
+
diff --git a/docs/ja-JP/advanced-config/README.md b/docs/ja-JP/advanced-config/README.md
index 780447862..1447392e2 100644
--- a/docs/ja-JP/advanced-config/README.md
+++ b/docs/ja-JP/advanced-config/README.md
@@ -10,7 +10,7 @@ Starship は汎用性の高いシェルですが、時には特定の処理を
## PowerShell の TransientPrompt
-過去に出力されたプロンプトを置き換えることができます。 全ての情報が必要では無い時に役に立ちます。 有効にするには、 `Enable-TransientPrompt` をシェルで実行してください。 `$PROFILE` に追記することによって常時有効にすることが出来ます。 また、 `Disable-TransientPrompt` によっていつでも無効化することが出来ます。
+直前に出力されたプロンプトを置き換えることができます。 プロンプトの内容全てが常に必要ではない時に役立ちます。 有効にするには、 `Enable-TransientPrompt` をシェルで実行してください。 `$PROFILE` に追記することによって常時有効にすることが出来ます。 また、 `Disable-TransientPrompt` によっていつでも無効化することが出来ます。
デフォルトでは、入力した文字列の左側を `>` で置換します。 カスタマイズするには、関数を `Invoke-Starship-TransientFunction` という名前で定義してください。 Starshipの `character` モジュールを表示する場合はこのようにします:
@@ -56,11 +56,11 @@ load(io.popen('starship init cmd'):read("*a"))()
## Fish の TransientPrompt と TransientRightPrompt
-過去に出力されたプロンプトを置き換えることができます。 全ての情報が必要では無い時に役に立ちます。 To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`.
+直前に出力されたプロンプトを指定の内容で置き換えることができます。 プロンプトの内容全てが常に必要ではない時に役立ちます。 有効にするには、 `enable_transience` を現在のシェルセッションで実行してください。 設定を永続化するにはこのコマンドを `~/.config/fish/config.fish` に記述してください。 また、 `disable_transience` を実行することでいつでも無効化できます。
-Note that in case of Fish, the transient prompt is only printed if the commandline is non-empty, and syntactically correct.
+※Fishの場合は、コマンドラインが空ではなく構文的に正しい場合にのみ、transient プロンプトが出力されます。
-- By default, the left side of input gets replaced with a bold-green `❯`. カスタマイズするには、新しい関数 `starship_transient_prompt_func` を定義します。 Starshipの `character` モジュールを表示する場合はこのようにします:
+- デフォルトでは入力した文字列の左側が太字・緑色の `❯` に置き換えられます。 カスタマイズするには、新しい関数 `starship_transient_prompt_func` を定義します。 Starshipの `character` モジュールを表示する場合はこのようにします:
```fish
function starship_transient_prompt_func
@@ -80,31 +80,31 @@ starship init fish | source
enable_transience
```
-## TransientPrompt and TransientRightPrompt in Bash
+## Bash の TransientPrompt と TransientRightPrompt
-The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+バージョン 0.4 以降の [ble.sh](https://github.com/akinomyoga/ble.sh) の枠組みを用いると、直前に表示されたプロンプトを指定の文字列に置き換えることができます。 プロンプトの内容全てが常に必要ではない時に役立ちます。 有効にするには、 `~/.bashrc` に `bleopt prompt_ps1_transient=` を記述してください。
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+\ は `always`、 `same-dir` 、 `trim` からなるコロン区切りのリストです。 設定 `prompt_ps1_final` が空でかつ設定 `prompt_ps1_transient` が非空の \ を持つ場合、 `PS1` に基づくプロンプトは現在のコマンドラインを去るときに消去されます。 \ が `trim` を含む場合、複数行 `PS1` の最後の行だけを残して他の行は消去されます。 それ以外の場合は、あたかも `PS1=` が指定されたかのようにコマンドラインが再描画されます。 \ が項目 `same-dir` を含む時に現在のワーキングディレクトリが前のコマンドラインの最終的なワーキングディレクトリと異なる場合、設定 `prompt_ps1_transient` は無視されます。
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+左側や右側に transient プロンプトとして出力する文字列を変更するには、以下の変更を `~/.blerc` (または `~/.config/blesh/init.sh`) に適用してください。
-- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+- 入力文字列の左側を何に置き換えるか変更するには、 ble.sh 設定 `prompt_ps1_final` を設定します。 例えば Starship の `character` モジュールをここに表示するには、次のようにします。
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
-- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. 例えば、直前のコマンドを実行した時刻を表示するには次のようにします。
+- 入力文字列の右側を何に置き換えるか変更するには、 ble.sh 設定 `prompt_rps1_final` を設定します。 例えば、直前のコマンドを実行した時刻を表示するには次のようにします。
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Cmdのカスタムの事前プロンプトおよび事前実行コマンド
-Clinkはプロンプト表示前と実行前にCmd shellコマンドを実行するための非常に柔軟なAPIを提供します。 It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
+Clinkはプロンプト表示前と実行前にCmd shellコマンドを実行するための非常に柔軟なAPIを提供します。 Starshipからこれを利用するのはとても簡単です。 好みに従って `starship.lua` を以下のように変更してください。
-- To run a custom function right before the prompt is drawn, define a new function called `starship_preprompt_user_func`. This function receives the current prompt as a string that you can utilize. For example, to draw a rocket before the prompt, you would do
+- プロンプトが描画される直前に好みの関数を実行するには、 `starship_preprompt_user_func` という名前で新しい関数を定義してください。 この関数は現在のプロンプトを再利用できる文字列で受け取ります。 例として、ロケットをプロンプトの前に表示するには、以下のようにします。
```lua
function starship_preprompt_user_func(prompt)
@@ -114,7 +114,7 @@ end
load(io.popen('starship init cmd'):read("*a")()
```
-- To run a custom function right before a command is executed, define a new function called `starship_precmd_user_func`. This function receives the current commandline as a string that you can utilize. For example, to print the command that's about to be executed, you would do
+- コマンドが実行される直前に好みの関数を実行するには、 `starship_precmd_user_func` という名前で新しい関数を定義してください。 この関数は現在のコマンドライン文字列を再利用できる文字列で受け取ります。 例えば、これから実行されるコマンドを出力するには、以下のようにします。
```lua
function starship_precmd_user_func(line)
@@ -137,7 +137,7 @@ function blastoff(){
starship_precmd_user_func="blastoff"
```
-- コマンドの直前に関数を実行するために、[`DEBUG` トラップの仕組み](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/)を使うことができます。 However, you **must** trap the DEBUG signal _before_ initializing Starship! Starship は DEBUGトラップの値を保護できますが、 starship の起動後にトラップが上書きされると、いくつかの機能は壊れてしまうでしょう。
+- コマンドの直前に関数を実行するために、[`DEBUG` トラップの仕組み](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/)を使うことができます。 ただし、Starship を初期化する_前_に DEBUG シグナルをトラップ**しなければいけません**! Starship は DEBUGトラップの値を保護できますが、 starship の起動後にトラップが上書きされると、いくつかの機能は壊れてしまうでしょう。
```bash
function blastoff(){
@@ -149,11 +149,11 @@ eval $(starship init bash)
set +o functrace
```
-## Custom pre-prompt and pre-execution Commands in PowerShell
+## PowerShell のカスタム事前プロンプトおよび事前実行コマンド
-PowerShell does not have a formal preexec/precmd framework like most other shells. そのため、`powershell`で完全にカスタマイズ可能なフックを提供することは困難です。 ただし、Starship はプロンプトを描画する一連の流れに、限定的に独自の関数を挿入することができます。
+PowerShell は、他のほとんどのシェルと違い、正式な preexec/precmd の枠組みを持ちません。 そのため、`powershell`で完全にカスタマイズ可能なフックを提供することは困難です。 ただし、Starship はプロンプトを描画する一連の流れに、限定的に独自の関数を挿入することができます。
-Create a function named `Invoke-Starship-PreCommand`
+`Invoke-Starship-PreCommand` という名前の関数を作成してください。
```powershell
function Invoke-Starship-PreCommand {
@@ -161,9 +161,9 @@ function Invoke-Starship-PreCommand {
}
```
-## ウィンドウのタイトルの変更
+## ウィンドウタイトルの変更
-いくつかのシェルプロンプトはあなたのためにウィンドウのタイトルを自動的に変更します(例えば、カレントディレクトリを反映するために)。 特に Fish はデフォルトで変更を行います。 Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
+いくつかのシェルプロンプトはあなたのためにウィンドウのタイトルを自動的に変更します(例えば、カレントディレクトリを反映するために)。 特に Fish はデフォルトで変更を行います。 Starship はこれに対応しませんが、この機能を `bash`, `zsh`, `cmd`, `powershell` に追加することは簡単です。
まず、ウィンドウのタイトルを変更する関数を定義してください( bash も zsh も同様に)
@@ -198,7 +198,7 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
-For Cmd, you can change the window title using the `starship_preprompt_user_func` function.
+Cmd では、 `starship_preprompt_user_func` 関数を使用してウィンドウのタイトルを変更できます。
```lua
function starship_preprompt_user_func(prompt)
@@ -208,7 +208,7 @@ end
load(io.popen('starship init cmd'):read("*a"))()
```
-You can also set a similar output with PowerShell by creating a function named `Invoke-Starship-PreCommand`.
+PowerShell でも `Invoke-Starship-PreCommand` という名前の関数を作成することで、同様の出力を設定できます。
```powershell
# edit $PROFILE
@@ -223,21 +223,21 @@ Invoke-Expression (&starship init powershell)
シェルによっては、入力と同じ行にレンダリングされる右プロンプトをサポートしています。 Starship では `right_format` オプションを使って右プロンプトの内容を設定できます。 `format`で使用できるモジュールはすべて`right_format`でも使用できます。 変数`$all`には、`format`や`right_format`で明示的に使用されていないモジュールのみが格納されます。
-注意: 右プロンプトは入力の場所に続く単一の行です。 To right align modules above the input line in a multi-line prompt, see the [`fill` module](../config/#fill).
+注意: 右プロンプトは入力の場所に続く単一の行です。 複数行プロンプトで入力行の上にあるモジュールを右寄せしたいときは、 [`fill` module](../config/#fill) を参照してください。
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+`right_format` は現在、次のシェルでサポートされています: elvish, fish, zsh, xonsh, cmd, nushell, bash
-Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework v0.4 or higher should be installed in order to use right prompt in bash.
+注意: 右プロンプトを Bash で利用するには [ble.sh](https://github.com/akinomyoga/ble.sh) のバージョン 0.4 以降をインストールする必要があります。
### 設定例
```toml
# ~/.config/starship.toml
-# A minimal left prompt
+# 最低限の左プロンプト
format = """$character"""
-# move the rest of the prompt to the right
+# 残りのプロンプトの内容を右に寄せる
right_format = """$all"""
```
@@ -247,15 +247,15 @@ right_format = """$all"""
▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
```
-## Continuation Prompt
+## 継続プロンプト (Continuation Prompt)
-Some shells support a continuation prompt along with the normal prompt. This prompt is rendered instead of the normal prompt when the user has entered an incomplete statement (such as a single left parenthesis or quote).
+一部のシェルは、通常のプロンプトの他に継続プロンプトをサポートしています。 このプロンプトは、ユーザーが不完全な文 (単一の左括弧や引用符など) を確定したときに通常のプロンプトの代わりに表示されます。
-Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `'[∙](bright-black) '`.
+Starship では、 `contination_prompt` オプションを使用して継続プロンプトを設定できます。 既定の継続プロンプトは `'[・](bright-black) '` です。
-Note: `continuation_prompt` should be set to a literal string without any variables.
+注意: `contination_prompt` には変数を含まないそのまま文字列を設定する必要があります。
-Note: Continuation prompts are only available in the following shells:
+注意: 継続プロンプトは次のシェルでのみ使用できます。
- `bash`
- `zsh`
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# 2つの塗りつぶし右三角を表示する継続プロンプト
continuation_prompt = '▶▶ '
```
@@ -299,8 +299,8 @@ continuation_prompt = '▶▶ '
複数の色が文字色/背景色に指定された際には、最後の指定が優先して選ばれます。
-Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
+すべてのスタイル文字列がすべての端末で正しく表示できるわけではありません。 特に、端末の変な動作として以下のようなものが知られています。
-- Many terminals disable support for `blink` by default
-- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- 多くの端末はデフォルトで `bink` のサポートを無効にしています。
+- `hidden` は [iTerm ではサポートされていません](https://gitlab.com/gnachman/iterm2/-/issues/4564)。
+- `strikethrough` は、macOS 既定の Terminal.app ではサポートされていません。
diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md
index 81c505439..85b498fa6 100644
--- a/docs/ja-JP/config/README.md
+++ b/docs/ja-JP/config/README.md
@@ -9,17 +9,17 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
Starshipのすべての設定は、この[TOML](https://github.com/toml-lang/toml)ファイルで行われます。
```toml
-# Get editor completions based on the config schema
+# エディターの補完を設定スキーマに合わせて取得
"$schema" = 'https://starship.rs/config-schema.json'
-# Inserts a blank line between shell prompts
+# シェルのプロンプトの間に空行を挿入する
add_newline = true
-# Replace the '❯' symbol in the prompt with '➜'
-[character] # The name of the module we are configuring is 'character'
-success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
+# 記号"❯"を記号"➜"に置き換える
+[character] # 設定対象のモジュール名は 'character'
+success_symbol = '[➜](bold green)' # セグメント 'success_symbol' を '➜' 配色 'bold green' (太字の緑色) に設定
-# Disable the package module, hiding it from the prompt completely
+# package モジュールを無効化してプロンプトから完全に非表示にする
[package]
disabled = true
```
@@ -46,7 +46,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star
### ロギング
-By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to an instance of your terminal. しかし、これは `STARSHIP_CACHE` という環境変数を使って変更できます:
+Starship は警告やエラーログを既定で `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log` というファイルに出力します。ただし、${STARSHIP_SESSION_KEY} は端末のそれぞれのインスタンスに対応して決まります。 ディレクトリ名は環境変数 `STARSHIP_CACHE` を使って変更できます:
```sh
export STARSHIP_CACHE=~/.starship/cache
@@ -78,44 +78,44 @@ TOML記法では、[文字列](https://toml.io/en/v1.0.0#string)は`'`、`"`、`
これらのStarship記法の記号は文字列のフォーマットにおいて特別な用途があり、文字として表示するためにはエスケープしなければなりません: `$ [ ] ( )`.
-| Symbol | Type | Notes |
-| ------ | ------------------------- | ------------------------------------------------------ |
-| `'` | literal string | less escaping |
-| `"` | string | more escaping |
-| `'''` | multi-line literal string | less escaping |
-| `"""` | multi-line string | more escaping, newlines in declarations can be ignored |
+| 記号 | 種類 | 備考 |
+| ----- | ---------- | ------------------------------ |
+| `'` | リテラル文字列 | 少ないエスケープ |
+| `"` | 文字列 | より多くのエスケープ |
+| `'''` | 複数行リテラル文字列 | 少ないエスケープ |
+| `"""` | 複数行文字列 | より多くのエスケープ。宣言内の改行はエスケープで無視できます |
例:
```toml
-# literal string
+# リテラル文字列
format = '☺\☻ '
-# regular string
+# 通常文字列
format = "☺\\☻ "
-# escaping Starship symbols
+# Starship の特殊記号をエスケープ
format = '\[\$\] '
```
-When using line breaks, multi-line declarations can be used. For example, if you want to print a `$` symbol on a new line, the following values for `format` are equivalent:
+改行を指定したい場合、複数行宣言が使えます。 例えば、新しい行に `$` 記号を表示したい場合、以下の `format` の設定が等価です。
```toml
-# with literal string
+# リテラル文字列を用いる
format = '''
\$'''
-# with multiline basic string
+# 複数行基本文字列を用いる
format = """
\\$"""
-# with basic string
+# 基本文字列を用いる
format = "\n\\$"
```
-In multiline basic strings, newlines can be used for formatting without being present in the value by escaping them.
+複数行基本文字列では、改行をエスケープすることで、実際の値に影響を与えずにソースコードを整形できます。
```toml
format = """
@@ -128,9 +128,9 @@ line2
"""
```
-### 文字列のフォーマット
+### フォーマット文字列
-文字列の書式は、モジュールがすべての変数を出力する書式です。 ほとんどのモジュールには、モジュールの表示形式を設定する `format` というエントリがあります。 テキスト、変数、およびテキストグループをフォーマット文字列で使用できます。
+フォーマット文字列は、モジュールが出力するすべての変数に使われる書式です。 ほとんどのモジュールには、モジュールの表示形式を設定する `format` というエントリがあります。 テキスト、変数、およびテキストグループをフォーマット文字列で使用できます。
#### 変数
@@ -138,9 +138,9 @@ line2
例:
-- `'$version'` is a format string with a variable named `version`.
-- `'$git_branch$git_commit'` is a format string with two variables named `git_branch` and `git_commit`.
-- `'$git_branch $git_commit'` has the two variables separated with a space.
+- `'$version'` は、`version` という名前の変数を指定するフォーマット文字列です。
+- `'$git_branch$git_commit'` は `git_branch` と `git_commit` という2つの変数を指定するフォーマット文字列です。
+- `'$git_branch $git_commit'` は空白で区切られた2つの変数を指定します。
#### テキストグループ
@@ -152,22 +152,22 @@ line2
例:
-- `'[on](red bold)'` will print a string `on` with bold text colored red.
-- `'[⌘ $version](bold green)'` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
-- `'[a [b](red) c](green)'` will print `a b c` with `b` red, and `a` and `c` green.
+- `'[on](red bold)'` は文字列 `on` を赤色の太字テキストで出力します。
+- `'[⌘ $version](bold green)'` は記号 `⌘` に続いて変数 `version` の値を、緑色の太字で出力します。
+- `'[a [b](red) c](green)'` は `a b c` のうち `b` だけ赤色で表示し、 `a` と `c` を緑色で表示します。
#### スタイルの設定
-Starshipのほとんどのモジュールでは、表示スタイルを設定できます。 これは、設定を指定する文字列であるエントリ(`style`)で行われます。 スタイル文字列の例とその機能を次に示します。 For details on the full syntax, consult the [advanced config guide](../advanced-config/).
+Starshipのほとんどのモジュールでは、表示スタイルを設定できます。 これは、設定を指定する文字列であるエントリ(`style`)で行われます。 スタイル文字列の例とその機能を次に示します。 完全な構文については、[高度な設定](../advanced-config/)を参照してください 。
-- `'fg:green bg:blue'` sets green text on a blue background
-- `'bg:blue fg:bright-green'` sets bright green text on a blue background
-- `'bold fg:27'` sets bold text with [ANSI color](https://i.stack.imgur.com/KTSQa.png) 27
-- `'underline bg:#bf5700'` sets underlined text on a burnt orange background
-- `'bold italic fg:purple'` sets bold italic purple text
-- `''` explicitly disables all styling
+- `"fg:green bg:blue"` は、青色の背景上の緑色のテキストを設定します
+- `"bg:blue fg:bright-green"` は、青色の背景上の明るい緑色のテキストを設定します
+- `'bold fg:27'` は [ANSI 色 27](https://i.stack.imgur.com/KTSQa.png) の太字テキストを設定します
+- `'underline bg:#bf5700'` は、バーントオレンジ色の背景に下線付きのテキストを設定します
+- `'bold italic fg:purple'` は、紫色の太字斜体のテキストを設定します
+- `''` はすべてのスタイルを明示的に無効にします
-スタイリングがどのように見えるかは、端末エミュレータによって制御されることに注意してください。 たとえば、一部の端末エミュレータはテキストを太字にする代わりに色を明るくします。また、一部のカラーテーマは通常の色と明るい色と同じ値を使用します。 また、斜体のテキストを取得するには、端末で斜体をサポートする必要があります。
+スタイルの実際の見た目は、端末エミュレータによることに注意してください。 たとえば、一部の端末エミュレータはテキストを太字にする代わりに色を明るくします。また、一部のカラーテーマは通常の色と明るい色と同じ値を使用します。 また、斜体のテキストを取得するには、端末で斜体をサポートする必要があります。
#### 条件付きフォーマット設定
@@ -175,17 +175,17 @@ Starshipのほとんどのモジュールでは、表示スタイルを設定で
例:
-- `'(@$region)'` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
-- `'(some text)'` will always show nothing since there are no variables wrapped in the braces.
-- When `$combined` is a shortcut for `\[$a$b\]`, `'($combined)'` will show nothing only if `$a` and `$b` are both `None`. This works the same as `'(\[$a$b\] )'`.
+- `'(@$region)'` は変数 `region` が `None` または空の場合は表示されませんが、値がある場合は `@` に続いてregionの値が表示されます。
+- `'(some text)'` は括弧の中に変数がないので、常に何も表示しません。
+- `$combined` を `\[$a$b\]` のショートカットとした時、 `$a` と `$b` が共に `None` の場合にのみ `'($combined)'` は空になります。 これは `'(\[$a$b\] )'` と同じ動作になります。
-### Negative matching
+### 否定的マッチング (Negative matching)
-Many modules have `detect_extensions`, `detect_files`, and `detect_folders` variables. These take lists of strings to match or not match. "Negative" options, those which should not be matched, are indicated with a leading '!' character. The presence of _any_ negative indicator in the directory will result in the module not being matched.
+多くのモジュールには、変数として `detect_extensions`、 `detect_files`、および `detect_folders` があります。 これらの変数には、一致文字列または除外文字列のリストを指定します。 先頭に文字 '!' を指定することで、「否定的」な指定 (つまり除外する文字列) を設定できます。 ディレクトリに_何れかの_否定的文字列が一致すると、モジュールは選択されません。
-Extensions are matched against both the characters after the last dot in a filename, and the characters after the first dot in a filename. For example, `foo.bar.tar.gz` will be matched against `bar.tar.gz` and `gz` in the `detect_extensions` variable. Files whose name begins with a dot are not considered to have extensions at all.
+拡張子に対する一致 (detect_extensions) は、ファイル名の中の最後または最初のドットに続く文字列に対して行われます。 例えばファイル名 `foo.bar.tar.gz` の場合は、 `bar.tar.gz` および `gz` が変数 `detect_extensions` の一致対象になります。 ドットで始まるファイル名は、拡張子が全くないと見なされます。
-To see how this works in practice, you could match TypeScript but not MPEG Transport Stream files thus:
+どのように動作するかの実例として、TypeScript と一致させたいが MPEGトランスポートストリームファイルを場外したい場合は以下のようにします。
```toml
detect_extensions = ['ts', '!video.ts', '!audio.ts']
@@ -197,20 +197,20 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
-| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
-| `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 |
-| `command_timeout` | `500` | Starshipによって実行されたコマンドのタイムアウト時間 (milliseconds) です。 |
-| `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 |
-| `palette` | `''` | Sets which color palette from `palettes` to use. |
-| `palettes` | `{}` | Collection of color palettes that assign [colors](../advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
-| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+| オプション | デフォルト | 説明 |
+| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------ |
+| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
+| `right_format` | `''` | [右プロンプトの有効化](../advanced-config/#enable-right-prompt) を参照してください。 |
+| `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 |
+| `command_timeout` | `500` | Starshipによって実行されたコマンドのタイムアウト時間 (milliseconds) です。 |
+| `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 |
+| `palette` | `''` | `palettes` の中から使用する配色を指定します。 |
+| `palettes` | `{}` | [色](../advanced-config/#style-strings) をユーザー定義の色名に割り当てる配色のコレクション。 ※配色で自身の色定義を参照することはできません。 |
+| `follow_symlinks` | `true` | ディレクトリかどうかをチェックするためにシンボリックリンクをたどります。git などのモジュールで使われます。 |
::: tip
-If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+ネットワーク上のファイルシステムへのシンボリックリンクがある場合は、 `follow_symlinks` を `false` に設定することを検討してください。
:::
@@ -219,26 +219,26 @@ If you have symlinks to networked filesystems, consider setting `follow_symlinks
```toml
# ~/.config/starship.toml
-# Use custom format
+# カスタムフォーマットを利用
format = '''
[┌───────────────────>](bold green)
[│](bold green)$directory$rust$package
[└─>](bold green) '''
-# Wait 10 milliseconds for starship to check files under the current directory.
+# starship が現在のディレクトリのファイルをチェックするのを10ミリ秒待ちます
scan_timeout = 10
-# Disable the blank line at the start of the prompt
+# プロンプトの前の空行を無効化
add_newline = false
-# Set 'foo' as custom color palette
+# カスタム配色として 'foo' を指定
palette = 'foo'
-# Define custom colors
+# カスタム配色を定義
[palettes.foo]
-# Overwrite existing color
+# 既存の色を上書き
blue = '21'
-# Define new color
+# 新しい色を定義
mustard = '#af8700'
```
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -344,7 +346,7 @@ $character"""
デフォルトのフォーマットを拡張したいだけなら、`$all`を使用できます。 フォーマットに明示的に追加したモジュールは重複しません。 例:
```toml
-# Move the directory to the second line
+# ディレクトリを2行目に移動
format = '$all$directory$character'
```
@@ -352,7 +354,7 @@ format = '$all$directory$character'
`aws`モジュールは、一時的な資格情報を使用する場合、現在のAWSリージョンとプロファイル、および有効期限タイマーを表示します。 モジュールの出力は、必要に応じて`AWS_REGION`、`AWS_DEFAULT_REGION`と`AWS_PROFILE`の環境変数と、`~/.aws/config`と`~/.aws/credentials`のファイルが使用されます。
-The module will display a profile only if its credentials are present in `~/.aws/credentials` or if a `credential_process`, `sso_start_url`, or `sso_session` are defined in `~/.aws/config`. あるいは、環境変数に`AWS_ACCESS_KEY_ID`、`AWS_SECRET_ACCESS_KEY`または`AWS_SESSION_TOKEN`のいずれかが定義されていれば条件を満たします。 もし`force_display`のオプションを`true`に設定した場合、上記の条件による資格情報が検出されない場合でも、利用可能なすべての情報が表示されます。
+モジュールは、資格情報が`~/.aws/credentials`にある場合、または`~/.aws/config`に`credential_process`か`sso_start_url`または`sso_session`が定義されている場合にのみプロファイルを表示します。 あるいは、環境変数に`AWS_ACCESS_KEY_ID`、`AWS_SECRET_ACCESS_KEY`または`AWS_SESSION_TOKEN`のいずれかが定義されていれば条件を満たします。 もし`force_display`のオプションを`true`に設定した場合、上記の条件による資格情報が検出されない場合でも、利用可能なすべての情報が表示されます。
[aws-vault](https://github.com/99designs/aws-vault)を使う場合、環境変数`AWS_VAULT`からプロファイルが、環境変数`AWS_SESSION_EXPIRATION`から資格情報の有効期限が読み込まれます。
@@ -360,9 +362,9 @@ The module will display a profile only if its credentials are present in `~/.aws
[AWSume](https://awsu.me)を使う場合、環境変数`AWSUME_PROFILE`からプロファイルが、環境変数`AWSUME_EXPIRATION`から資格情報の有効期限が読み込まれます。
-When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+[saml2aws](https://github.com/Versent/saml2aws) を使用する場合、 `~/.aws/credentials` から得られる有効期限情報は `x_security_token_expires` キーで代替されます。
-When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+[aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) を使う場合、そのプロファイルは環境変数 `AWSU_PROFILE` から読まれます。
### オプション
@@ -440,13 +442,13 @@ Enterprise_Naming_Scheme-voidstars = 'void**'
### オプション
-| 変数 | デフォルト | 説明 |
-| ---------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------- |
-| `format` | `'on [$symbol($subscription)]($style) '` | Azure module のフォーマットです。 |
-| `symbol` | `' '` | フォーマットで使用される記号です。 |
-| `style` | `'blue bold'` | フォーマットで使用されるスタイルです。 |
-| `disabled` | `true` | `azure`モジュールを無効にします。 |
-| `subscription_aliases` | `{}` | Table of subscription name aliases to display in addition to Azure subscription name. |
+| 変数 | デフォルト | 説明 |
+| ---------------------- | ---------------------------------------- | ------------------------------------- |
+| `format` | `'on [$symbol($subscription)]($style) '` | Azure module のフォーマットです。 |
+| `symbol` | `' '` | フォーマットで使用される記号です。 |
+| `style` | `'blue bold'` | フォーマットで使用されるスタイルです。 |
+| `disabled` | `true` | `azure`モジュールを無効にします。 |
+| `subscription_aliases` | `{}` | Azure サブスクリプション名に加えて表示されるそれらのエイリアスの表。 |
### 設定例
@@ -474,7 +476,7 @@ symbol = " "
style = "blue bold"
```
-#### Display Subscription Name Alias
+#### サブスクリプション名のエイリアスを表示
```toml
# ~/.config/starship.toml
@@ -537,16 +539,16 @@ style = 'bold red'
#### 設定例
```toml
-[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10%
+[[battery.display]] # バッテリー容量が0~10%の時'bold red'(太字の赤)でdischarging_symbolを表示
threshold = 10
style = 'bold red'
-[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
+[[battery.display]] # バッテリー容量が10~30%の時'bold yellow'(太字の黄)で記号💦を表示
threshold = 30
style = 'bold yellow'
discharging_symbol = '💦 '
-# when capacity is over 30%, the battery indicator will not be displayed
+# バッテリー容量が30%より大きい時、バッテリーインジケータは非表示
```
## Buf
@@ -590,7 +592,7 @@ symbol = '🦬 '
## Bun
-The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+`bun` モジュールは、現在インストールされている[bun](https://bun.sh) JavaScript ランタイムのバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
- カレントディレクトリに`bun.lockb`ファイルが含まれている
- カレントディレクトリに`bunfig.toml`ファイルが含まれている
@@ -601,18 +603,18 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | Bun のシンボルを表すフォーマット文字列 |
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `'bold red'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `bun` module. |
+| `disabled` | `false` | `bun` モジュールを無効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- |
-| version | `v0.1.4` | The version of `bun` |
+| version | `v0.1.4` | `bun`のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -620,7 +622,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
### 設定例
-#### Customize the format
+#### フォーマットの変更
```toml
# ~/.config/starship.toml
@@ -629,9 +631,9 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
format = 'via [🍔 $version](bold green) '
```
-#### Replace Node.js
+#### Node.js を置き換える
-You can override the `detect_files` property of [the nodejs module](#nodejs) in your config so as to only show the bun runtime:
+Bun ランタイムだけが表示されるように、設定中の [nodejs モジュール](#nodejs) の `detect_files` プロパティを上書きできます。
```
[nodejs]
@@ -671,7 +673,7 @@ detect_files = ['package.json', '.node-version', '!bunfig.toml', '!bun.lockb']
`commands`オプションは、コンパイラのバージョンと名前を判別するためのコマンドのリストを受け入れます。
-Each command is represented as a list of the executable name, followed by its arguments, usually something like `['mycc', '--version']`. StarshipはSTDOUTから結果が得られるまで各コマンドを実行を試みます。
+各コマンドは、実行可能ファイル名 (とそれに続く引数) のリストで表現されます。通常は`['mycc', '--version']`のようになります。 StarshipはSTDOUTから結果が得られるまで各コマンドを実行を試みます。
もし、Cコンパイラがこのモジュールでサポートされていない場合は、[GitHubで問題を提起する](https://github.com/starship/starship/)ことでリクエストできます。
@@ -703,22 +705,22 @@ characterは、最後のコマンドが成功したかどうかを示します
### オプション
-| オプション | デフォルト | 説明 |
-| --------------------------- | -------------------- | -------------------------------------------------------------------------------- |
-| `format` | `'$symbol '` | テキスト入力の前に使用されるフォーマット文字列。 |
-| `success_symbol` | `'[❯](bold green)'` | 前のコマンドが成功した場合にテキスト入力の前に使用されるフォーマット文字列です。 |
-| `error_symbol` | `'[❯](bold red)'` | 前のコマンドが失敗した場合にテキスト入力の前に使用されるフォーマット文字列です。 |
-| `vimcmd_symbol` | `'[❮](bold green)'` | シェルがvimノーマルモードの場合にテキスト入力の前に使用されるフォーマット文字列です。 |
-| `vimcmd_replace_one_symbol` | `'[❮](bold purple)'` | シェルがvimの`replace_one`モードの場合にテキスト入力の前に使用されるフォーマット文字列です。 |
-| `vimcmd_replace_symbol` | `'[❮](bold purple)'` | シェルがvimの置換モードの場合にテキスト入力の前に使用されるフォーマット文字列。 |
-| `vimcmd_visual_symbol` | `'[❮](bold yellow)'` | The format string used before the text input if the shell is in vim visual mode. |
-| `disabled` | `false` | `character`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| --------------------------- | -------------------- | ------------------------------------------------------ |
+| `format` | `'$symbol '` | テキスト入力の前に使用されるフォーマット文字列。 |
+| `success_symbol` | `'[❯](bold green)'` | 前のコマンドが成功した場合にテキスト入力の前に使用されるフォーマット文字列です。 |
+| `error_symbol` | `'[❯](bold red)'` | 前のコマンドが失敗した場合にテキスト入力の前に使用されるフォーマット文字列です。 |
+| `vimcmd_symbol` | `'[❮](bold green)'` | シェルがvimノーマルモードの場合にテキスト入力の前に使用されるフォーマット文字列です。 |
+| `vimcmd_replace_one_symbol` | `'[❮](bold purple)'` | シェルがvimの`replace_one`モードの場合にテキスト入力の前に使用されるフォーマット文字列です。 |
+| `vimcmd_replace_symbol` | `'[❮](bold purple)'` | シェルがvimの置換モードの場合にテキスト入力の前に使用されるフォーマット文字列です。 |
+| `vimcmd_visual_symbol` | `'[❮](bold yellow)'` | シェルがvimビジュアルモードの場合にテキスト入力の前に使用されるフォーマット文字列です。 |
+| `disabled` | `false` | `character`モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ------ | --- | -------------------------------------------------------------------------------------------------------- |
-| symbol | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. |
+| 変数 | 設定例 | 説明 |
+| ------ | --- | ---------------------------------------------------------------------------------------------------- |
+| symbol | | 現在の状態に応じた `success_symbol`, `error_symbol`, `vimcmd_symbol` または `vimcmd_replace_one_symbol` の何れかのミラー |
### 設定例
@@ -1084,38 +1086,38 @@ format = 'via [🦕 $version](green bold) '
`directory` モジュールは現在のディレクトリへのパスを表示します。親フォルダは3つまでに切り捨てられます。 git リポジトリ内にいる場合は、リポジトリのルートで切り捨てられます。
-When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
+`fish_style_pwd_dir_length` を使用している場合、切り捨てられたパスを非表示にする代わりに、オプションで有効にした数値に基づいた各ディレクトリの短縮名が表示されます。
たとえば、`~/Dev/Nix/nixpkgs/pkgs`で、`nixpkgs` がリポジトリルートであり、オプションが `1` に設定されている場合を挙げます。 この場合、`nixpkgs/pkgs` の代わりに、`~/D/N/nixpkgs/pkgs` と表示されます。
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
-| `truncation_length` | `3` | 現在のディレクトリを切り捨てる親フォルダーの数です。 |
-| `truncate_to_repo` | `true` | 現在いるgitリポジトリのルートに切り捨てるかどうかです。 |
-| `format` | `'[$path]($style)[$read_only]($read_only_style) '` | module のフォーマットです。 |
-| `style` | `'bold cyan'` | モジュールのスタイルです。 |
-| `disabled` | `false` | `directory`モジュールを無効にします。 |
-| `read_only` | `'🔒'` | このシンボルが表示されている時、現在のディレクトリは読み取り専用です。 |
-| `read_only_style` | `'red'` | 読み取り専用シンボルのスタイルです。 |
-| `truncation_symbol` | `''` | 切り捨てられたパスの接頭辞として付けるシンボルです。 eg: '…/' |
-| `before_repo_root_style` | | The style for the path segment above the root of the git repo. デフォルトの値は `style` と同じです。 |
-| `repo_root_style` | | gitリポジトリのルートのスタイルです。 デフォルトの値は `style` と同じです。 |
-| `repo_root_format` | `'[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) '` | The format of a git repo when `before_repo_root_style` and `repo_root_style` is defined. |
-| `home_symbol` | `'~'` | ホームディレクトリを示すシンボルです。 |
-| `use_os_path_sep` | `true` | `/`を使用する代わりに、OS固有のパスの区切り文字を使用します。(例: Windowsの場合`\`) |
+| オプション | デフォルト | 説明 |
+| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
+| `truncation_length` | `3` | 現在のディレクトリを切り捨てる親フォルダーの数です。 |
+| `truncate_to_repo` | `true` | 現在いるgitリポジトリのルートに切り捨てるかどうかです。 |
+| `format` | `'[$path]($style)[$read_only]($read_only_style) '` | module のフォーマットです。 |
+| `style` | `'bold cyan'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `directory`モジュールを無効にします。 |
+| `read_only` | `'🔒'` | このシンボルが表示されている時、現在のディレクトリは読み取り専用です。 |
+| `read_only_style` | `'red'` | 読み取り専用シンボルのスタイルです。 |
+| `truncation_symbol` | `''` | 切り捨てられたパスの接頭辞として付けるシンボルです。 例: '…/' |
+| `before_repo_root_style` | | パス名のうち、git リポジトリのルートより上の階層のスタイル。 デフォルトの値は `style` と同じです。 |
+| `repo_root_style` | | gitリポジトリのルートのスタイルです。 デフォルトの値は `style` と同じです。 |
+| `repo_root_format` | `'[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) '` | `before_repo_root_style` と `repo_root_style` が定義されているときの git リポジトリの書式。 |
+| `home_symbol` | `'~'` | ホームディレクトリを示すシンボルです。 |
+| `use_os_path_sep` | `true` | `/`を使用する代わりに、OS固有のパスの区切り文字を使用します。(例: Windowsの場合`\`) |
このモジュールは、どのようにディレクトリを表示するかについての高度なオプションをいくつか持っています。
-| Advanced Option | デフォルト | 説明 |
-| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | fish shellのpwdパスロジックを適用するときに使用する文字数です。 |
-| `use_logical_path` | `true` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
+| 詳細設定 | デフォルト | 説明 |
+| --------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- |
+| `substitutions` | | パスに適用される置換の辞書。 |
+| `fish_style_pwd_dir_length` | `0` | fish shellのpwdパスロジックを適用するときに使用する文字数です。 |
+| `use_logical_path` | `true` | `true` の場合、シェルによって `PWD` または `--logical-path` を通して指定される起点からの論理パスを表示します。 `false` の場合、代わりにシンボリックリンクを解決したファイルシステム上の物理パスを表示します。 |
-`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD.
+`substitutions` によってパスに含まれる固定文字列に対する任意の置換を定義できます。固定文字列の例として、長いネットワークプレフィックスや (Java の) 開発ディレクトリが考えられます。 ※これは fish 形式の PWD を無効化します。
```toml
[directory.substitutions]
@@ -1123,7 +1125,7 @@ When using the `fish_style_pwd_dir_length` option, instead of hiding the path th
'src/com/long/java/path' = 'mypath'
```
-`fish_style_pwd_dir_length` interacts with the standard truncation options in a way that can be surprising at first: if it's non-zero, the components of the path that would normally be truncated are instead displayed with that many characters. For example, the path `/built/this/city/on/rock/and/roll`, which would normally be displayed as `rock/and/roll`, would be displayed as `/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`.
+`fish_style_pwd_dir_length` は標準の短縮設定と組み合わさって、一見して意外な結果をもたらすかもしれません。非ゼロの値の場合、通常省略されるディレクトリ名がその文字数だけ表示されます。 例えばパス `/built/this/city/on/rock/and/roll` は通常 `rock/and/roll` と表示されますが、 `fish_style_pwd_dir_length = 1` の時は `/b/t/c/o/rock/and/roll` と表示されます。つまり、通常削除されるパスコンポーネントが代わりに一文字で表示されます。 `fish_style_pwd_dir_length = 2`の場合、 `/bu/th/ci/on/rock/and/roll` になります。
@@ -1163,34 +1165,34 @@ truncation_symbol = '…/'
## Direnv
-The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+`direnv` モジュールは、もし存在すれば、現在の rc ファイルの状態を示します。 状態として rc ファイルへのパス、ロードされているかどうか、および `direnv` によって許可されているかどうかを含みます。
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | -------------------------------------- | ----------------------------------------------------- |
-| `format` | `'[$symbol$loaded/$allowed]($style) '` | module のフォーマットです。 |
-| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
-| `style` | `'bold orange'` | モジュールのスタイルです。 |
-| `disabled` | `true` | Disables the `direnv` module. |
-| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
-| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
-| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
-| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
-| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+| オプション | デフォルト | 説明 |
+| ------------------- | -------------------------------------- | ------------------------------------------ |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | module のフォーマットです。 |
+| `symbol` | `'direnv '` | Direnv コンテキストの前に表示される記号です。 |
+| `style` | `'bold orange'` | モジュールのスタイルです。 |
+| `disabled` | `true` | `Direnv`モジュールを無効にします。 |
+| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `allowed_msg` | `'allowed'` | Rcファイルが許可されているとき (allowed) に表示されるメッセージです。 |
+| `not_allowed_msg` | `'not allowed'` | Rcファイルが不許可のとき (not_allowed) に表示されるメッセージです。 |
+| `denied_msg` | `'denied'` | Rcファイルが拒否されているとき (denied) に表示されるメッセージです。 |
+| `loaded_msg` | `'loaded'` | Rcファイルがロードされているときに表示されるメッセージです。 |
+| `unloaded_msg` | `'not loaded'` | Rcファイルがロードされていないときに表示されるメッセージです。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | ------------------- | --------------------------------------- |
-| loaded | `loaded` | Whether the current rc file is loaded. |
-| allowed | `denied` | Whether the current rc file is allowed. |
-| rc_path | `/home/test/.envrc` | The current rc file path. |
-| symbol | | オプション `symbol` の値をミラーする. |
-| style\* | `red bold` | オプション `style` の値をミラーする. |
+| 変数 | 設定例 | 説明 |
+| --------- | ------------------- | ----------------------- |
+| loaded | `loaded` | 現在のrcファイルがロードされているかどうか。 |
+| allowed | `denied` | 現在のrcファイルが許可されているかどうか。 |
+| rc_path | `/home/test/.envrc` | 現在の rc ファイルパス。 |
+| symbol | | オプション `symbol` の値のミラー。 |
+| style\* | `red bold` | オプション `style` の値のミラー。 |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -1386,7 +1388,7 @@ format = 'via [ $version](cyan bold) '
::: tip
-The order in which env_var modules are shown can be individually set by including `${env_var.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `env_var` module will simply show all env_var modules in the order they were defined.
+env_var モジュールが表示される順序は、`${env_var.foo}` (ドットが含まれるので `${...}` を使う必要があります) をトップレベルの `format` に入れることで個別に設定できます。 既定では、 `env_var` モジュールは、単にすべての env_var モジュールを定義順で表示します。
:::
@@ -1407,14 +1409,14 @@ default = 'unknown user'
### オプション
-| オプション | デフォルト | 説明 |
-| ---------- | ------------------------------ | ---------------------------------------------------------------------------- |
-| `symbol` | `""` | 環境変数を表示する前に使用される記号です。 |
-| `variable` | | 表示される環境変数です。 |
-| `default` | | 上のvariableが定義されていない場合に表示されるデフォルトの値です。 |
-| `format` | `"with [$env_value]($style) "` | module のフォーマットです。 |
-| `説明` | `""` | The description of the module that is shown when running `starship explain`. |
-| `disabled` | `false` | `env_var`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------- | ------------------------------ | -------------------------------------- |
+| `symbol` | `""` | 環境変数を表示する前に使用される記号です。 |
+| `variable` | | 表示される環境変数です。 |
+| `default` | | 上のvariableが定義されていない場合に表示されるデフォルトの値です。 |
+| `format` | `"with [$env_value]($style) "` | module のフォーマットです。 |
+| `description` | `""` | `starship explain` 実行の際に表示されるモジュールの説明。 |
+| `disabled` | `false` | `env_var`モジュールを無効にします。 |
### 変数
@@ -1489,28 +1491,28 @@ format = 'via [e $version](bold red) '
## Fennel
-The `fennel` module shows the currently installed version of [Fennel](https://fennel-lang.org). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+`fennel`モジュールは、現在インストールされている[Fennel](https://fennel-lang.org)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- The current directory contains a file with the `.fnl` extension
+- カレントディレクトリに拡張子 `.fnl` のファイルが含まれている
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ------------------------------------ | -------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
-| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
-| `style` | `'bold green'` | モジュールのスタイルです。 |
-| `detect_extensions` | `['fnl']` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `disabled` | `false` | Disables the `fennel` module. |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'🧅 '` | Fennel のバージョンの前に表示される記号です。 |
+| `style` | `'bold green'` | モジュールのスタイルです。 |
+| `detect_extensions` | `['fnl']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `disabled` | `false` | `fennel`モジュールを無効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- |
-| version | `v1.2.1` | The version of `fennel` |
+| version | `v1.2.1` | `fennel`のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -1556,26 +1558,26 @@ AA -------------------------------------------- BB -----------------------------
## Fossil Branch
-The `fossil_branch` module shows the name of the active branch of the check-out in your current directory.
+`fossil_branch`モジュールは、現在のディレクトリにあるチェックアウトのアクティブなブランチ名を表示します。
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------- |
-| `format` | `'on [$symbol$branch]($style) '` | module のフォーマットです。 Use `'$branch'` to refer to the current branch name. |
-| `symbol` | `' '` | The symbol used before the branch name of the check-out in your current directory. |
-| `style` | `'bold purple'` | モジュールのスタイルです。 |
-| `truncation_length` | `2^63 - 1` | Truncates a Fossil branch name to `N` graphemes |
-| `truncation_symbol` | `'…'` | ブランチ名切り捨てられていることを示すための記号です。 You can use `''` for no symbol. |
-| `disabled` | `true` | Disables the `fossil_branch` module. |
+| オプション | デフォルト | 説明 |
+| ------------------- | -------------------------------- | ----------------------------------------------------- |
+| `format` | `'on [$symbol$branch]($style) '` | module のフォーマットです。 現在のブランチ名を参照するには、`'$branch'` を使用します。 |
+| `symbol` | `' '` | 現在のディレクトリのチェックアウトのブランチ名の前に使用されるシンボルです。 |
+| `style` | `'bold purple'` | モジュールのスタイルです。 |
+| `truncation_length` | `2^63 - 1` | Fossil のブランチ名を `N` 書記素までで切り捨てます。 |
+| `truncation_symbol` | `'…'` | ブランチ名切り捨てられていることを示すための記号です。 `''` で記号なしにできます。 |
+| `disabled` | `true` | `fossil_branch` モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | ------- | ------------------------ |
-| branch | `trunk` | The active Fossil branch |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | ------- | ----------------------- |
+| branch | `trunk` | アクティブな Fossil ブランチ |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -1592,26 +1594,26 @@ truncation_symbol = ''
## Fossil Metrics
-The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+`fossil_branch` モジュールは、現在のディレクトリのチェックアウトにおける追加・削除された行数を表示します。 少なくとも Fossil バージョン 2.14 (2021-01-20) が必要です。
### オプション
-| オプション | デフォルト | 説明 |
-| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
-| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | module のフォーマットです。 |
-| `added_style` | `'bold green'` | The style for the added count. |
-| `deleted_style` | `'bold red'` | The style for the deleted count. |
-| `only_nonzero_diffs` | `true` | Render status only for changed items. |
-| `disabled` | `true` | Disables the `fossil_metrics` module. |
+| オプション | デフォルト | 説明 |
+| -------------------- | ------------------------------------------------------------ | ------------------------------ |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | module のフォーマットです。 |
+| `added_style` | `'bold green'` | 追加行数のスタイルです。 |
+| `deleted_style` | `'bold red'` | 削除行数のスタイルです。 |
+| `only_nonzero_diffs` | `true` | 変更された項目についてのみステータスを表示します。 |
+| `disabled` | `true` | `fossil_metrics` モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ----------------- | --- | ------------------------------------------- |
-| added | `1` | The current number of added lines |
-| deleted | `2` | The current number of deleted lines |
-| added_style\* | | Mirrors the value of option `added_style` |
-| deleted_style\* | | Mirrors the value of option `deleted_style` |
+| 変数 | 設定例 | 説明 |
+| ----------------- | --- | ------------------------------- |
+| added | `1` | 現在の追加行数です。 |
+| deleted | `2` | 現在の削除行数です。 |
+| added_style\* | | オプション `added_style` の値を反映します。 |
+| deleted_style\* | | オプション `deleted_style` の値を反映します。 |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -1629,19 +1631,19 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
`gcloud` モジュールは、 [`gcloud`](https://cloud.google.com/sdk/gcloud) CLIの現在の設定が表示されます。 これは `~/.config/gcloud/active_config` ファイルと `~/.config/gcloud/configurations/config_{CONFIG NAME}` ファイルと `CLOUDSDK_CONFIG` 環境変数に基づきます。
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
+`detect_env_vars` が設定されていない限り、モジュールが有効になっているときは常に活性化します。<0>detect_env_vars0> が設定されている場合、何れかの環境変数が設定されているときにのみ活性化します。
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | ---------------------------------------------------------- | -------------------------------------------------------- |
-| `format` | `'on [$symbol$account(@$domain)(\($region\))]($style) '` | module のフォーマットです。 |
-| `symbol` | `'☁️ '` | 現在のGCPプロファイルを表示する前に表示される記号です。 |
-| `region_aliases` | `{}` | GCP名に加えて表示するリージョンのエイリアスです。 |
-| `project_aliases` | `{}` | GCP名に加えて表示するプロジェクトのエイリアスです。 |
-| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
-| `style` | `'bold blue'` | モジュールのスタイルです。 |
-| `disabled` | `false` | `gcloud`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ----------------- | ---------------------------------------------------------- | ----------------------------- |
+| `format` | `'on [$symbol$account(@$domain)(\($region\))]($style) '` | module のフォーマットです。 |
+| `symbol` | `'☁️ '` | 現在のGCPプロファイルを表示する前に表示される記号です。 |
+| `region_aliases` | `{}` | GCP名に加えて表示するリージョンのエイリアスです。 |
+| `project_aliases` | `{}` | GCP名に加えて表示するプロジェクトのエイリアスです。 |
+| `detect_env_vars` | `[]` | このモジュールを活性化する環境変数です。 |
+| `style` | `'bold blue'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `gcloud`モジュールを無効にします。 |
### 変数
@@ -1707,17 +1709,17 @@ very-long-project-name = 'vlpn'
### オプション
-| オプション | デフォルト | 説明 |
-| -------------------- | ------------------------------------------------- | ---------------------------------------------------------------------- |
-| `always_show_remote` | `false` | ローカルブランチ名と等しい場合でも、リモート追跡ブランチ名を表示します。 |
-| `format` | `'on [$symbol$branch(:$remote_branch)]($style) '` | module のフォーマットです。 Use `'$branch'` to refer to the current branch name. |
-| `symbol` | `' '` | gitブランチのシンボルを表すフォーマット文字列。 |
-| `style` | `'bold purple'` | モジュールのスタイルです。 |
-| `truncation_length` | `2^63 - 1` | Truncates a git branch to `N` graphemes. |
-| `truncation_symbol` | `'…'` | ブランチ名切り捨てられていることを示すための記号です。 You can use `''` for no symbol. |
-| `only_attached` | `false` | Only show the branch name when not in a detached `HEAD` state. |
-| `ignore_branches` | `[]` | 表示しない名前のリスト。 Useful for 'master' or 'main'. |
-| `disabled` | `false` | `git_branch`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| -------------------- | ------------------------------------------------- | ----------------------------------------------------- |
+| `always_show_remote` | `false` | ローカルブランチ名と等しい場合でも、リモート追跡ブランチ名を表示します。 |
+| `format` | `'on [$symbol$branch(:$remote_branch)]($style) '` | module のフォーマットです。 現在のブランチ名を参照するには、`'$branch'` を使用します。 |
+| `symbol` | `' '` | gitブランチのシンボルを表すフォーマット文字列。 |
+| `style` | `'bold purple'` | モジュールのスタイルです。 |
+| `truncation_length` | `2^63 - 1` | gitブランチ名を `N` 書記素までで切り捨てます。 |
+| `truncation_symbol` | `'…'` | ブランチ名切り捨てられていることを示すための記号です。 `''` で記号なしにできます。 |
+| `only_attached` | `false` | デタッチ `HEAD` 状態にない時はブランチ名のみ表示します。 |
+| `ignore_branches` | `[]` | 表示しない名前のリスト。 'master' や 'main' に対して有用です。 |
+| `disabled` | `false` | `git_branch`モジュールを無効にします。 |
### 変数
@@ -1749,24 +1751,24 @@ ignore_branches = ['master', 'main']
### オプション
-| オプション | デフォルト | 説明 |
-| -------------------- | ------------------------------ | ------------------------------------------------------------------------------------ |
-| `commit_hash_length` | `7` | 表示される git コミットハッシュの長さ。 |
-| `format` | `'[\($hash$tag\)]($style) '` | module のフォーマットです。 |
-| `style` | `'bold green'` | モジュールのスタイルです。 |
-| `only_detached` | `true` | detached `HEAD` 状態のときのみ git コミットハッシュを表示する |
-| `tag_disabled` | `true` | `git_commit` モジュールのタグ情報の表示を無効にする。 |
-| `tag_max_candidates` | `0` | How many commits to consider for tag display. The default only allows exact matches. |
-| `tag_symbol` | `' 🏷 '` | 表示される情報の前に追加されるタグシンボル |
-| `disabled` | `false` | `git_commit` モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| -------------------- | ------------------------------ | ----------------------------------------- |
+| `commit_hash_length` | `7` | 表示される git コミットハッシュの長さ。 |
+| `format` | `'[\($hash$tag\)]($style) '` | module のフォーマットです。 |
+| `style` | `'bold green'` | モジュールのスタイルです。 |
+| `only_detached` | `true` | detached `HEAD` 状態のときのみ git コミットハッシュを表示する |
+| `tag_disabled` | `true` | `git_commit` モジュールのタグ情報の表示を無効にする。 |
+| `tag_max_candidates` | `0` | タグ表示で考慮するコミットの数。 既定では完全一致のみ許可します。 |
+| `tag_symbol` | `' 🏷 '` | 表示される情報の前に追加されるタグシンボル |
+| `disabled` | `false` | `git_commit` モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | --------- | -------------------------------------------- |
-| hash | `b703eb3` | 現在の git コミットハッシュ |
-| tag | `v1.0.0` | The tag name if showing tag info is enabled. |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | --------- | ---------------------- |
+| hash | `b703eb3` | 現在の git コミットハッシュ |
+| tag | `v1.0.0` | タグ情報の表示が有効の場合のタグ名。 |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -1822,7 +1824,7 @@ cherry_pick = '[🍒 PICKING](bold red)'
## Git Metrics
-The `git_metrics` module will show the number of added and deleted lines in the current git repository.
+`git_metrics` モジュールは、現在の git リポジトリにおける追加・削除された行数を表示します。
::: tip
@@ -1832,23 +1834,23 @@ The `git_metrics` module will show the number of added and deleted lines in the
### オプション
-| オプション | デフォルト | 説明 |
-| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
-| `added_style` | `'bold green'` | The style for the added count. |
-| `deleted_style` | `'bold red'` | The style for the deleted count. |
-| `only_nonzero_diffs` | `true` | Render status only for changed items. |
-| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | module のフォーマットです。 |
-| `disabled` | `true` | Disables the `git_metrics` module. |
-| `ignore_submodules` | `false` | Ignore changes to submodules |
+| オプション | デフォルト | 説明 |
+| -------------------- | ------------------------------------------------------------ | --------------------------- |
+| `added_style` | `'bold green'` | 追加行数のスタイルです。 |
+| `deleted_style` | `'bold red'` | 削除行数のスタイルです。 |
+| `only_nonzero_diffs` | `true` | 変更された項目についてのみステータスを表示します。 |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | module のフォーマットです。 |
+| `disabled` | `true` | `git_metrics` モジュールを無効にします。 |
+| `ignore_submodules` | `false` | Git サブモジュールの変更を無視します。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ----------------- | --- | ------------------------------------------- |
-| added | `1` | The current number of added lines |
-| deleted | `2` | The current number of deleted lines |
-| added_style\* | | Mirrors the value of option `added_style` |
-| deleted_style\* | | Mirrors the value of option `deleted_style` |
+| 変数 | 設定例 | 説明 |
+| ----------------- | --- | ------------------------------- |
+| added | `1` | 現在の追加行数です。 |
+| deleted | `2` | 現在の削除行数です。 |
+| added_style\* | | オプション `added_style` の値を反映します。 |
+| deleted_style\* | | オプション `deleted_style` の値を反映します。 |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -1888,7 +1890,7 @@ WSL環境のWindowsディレクトリ(例: `/mnt/c/`以下) では、Git Status
| `staged` | `'+'` | `staged`のフォーマット |
| `renamed` | `'»'` | `renamed`のフォーマット |
| `deleted` | `'✘'` | `deleted`のフォーマット |
-| `typechanged` | `""` | The format of `typechange` |
+| `typechanged` | `""` | `typechange` のフォーマット |
| `style` | `'bold red'` | モジュールのスタイルです。 |
| `ignore_submodules` | `false` | サブモジュールの変更を無視します。 |
| `disabled` | `false` | `git_status`モジュールを無効にします。 |
@@ -1898,30 +1900,30 @@ WSL環境のWindowsディレクトリ(例: `/mnt/c/`以下) では、Git Status
` format` 内では以下の変数が利用できます。
-| 変数 | 説明 |
-| -------------- | ------------------------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
-| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| `typechanged` | Displays `typechange` when a file's type has been changed in the staging area. |
-| style\* | オプション `style` の値をミラーする |
+| 変数 | 説明 |
+| -------------- | ------------------------------------------------------------------------------------ |
+| `all_status` | `$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` のショートカット |
+| `ahead_behind` | 現在のリポジトリに応じてフォーマット文字列 `diverged`, `ahead`, `behind`, `up_to_date` の何れかを表示します。 |
+| `conflicted` | このブランチにマージコンフリクトがある場合、 `conflicted` を表示します。 |
+| `untracked` | 作業ディレクトリに追跡されていないファイルがある場合、 `untracked` を表示します。 |
+| `stashed` | Stash がローカルリポジトリに存在する場合、 `stashed` を表示します。 |
+| `modified` | 作業ディレクトリのファイルに変更がある場合に、 `modified` を表示します。 |
+| `staged` | インデックスに新しく追加されたファイルがあるときに、 `staged` を表示します。 |
+| `renamed` | インデックスに名前が変更されたファイルがあるときに、 `renamed` を表示します。 |
+| `deleted` | インデックスに削除されたファイルがあるときに、 `deleted` を表示します。 |
+| `typechanged` | インデックスにファイルタイプの変更があるときに、 `typechange` を表示します。 |
+| style\* | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
-The following variables can be used in `diverged`:
+` diverged` 内では以下の変数が利用できます。
-| 変数 | 説明 |
-| -------------- | ---------------------------------------------- |
-| `ahead_count` | Number of commits ahead of the tracking branch |
-| `behind_count` | Number of commits behind the tracking branch |
+| 変数 | 説明 |
+| -------------- | ------------------------- |
+| `ahead_count` | 追跡対象のブランチよりこちらが進んでいるコミット数 |
+| `behind_count` | 追跡対象のブランチよりこちらが遅れているコミット数 |
-The following variables can be used in `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`:
+`conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` および `deleted` の中で以下の変数が使えます:
| 変数 | 説明 |
| ------- | ------------- |
@@ -1946,7 +1948,7 @@ renamed = '👅'
deleted = '🗑'
```
-Show ahead/behind count of the branch being tracked
+以下は、追跡対象のブランチと比べて進んでいる・遅れているコミット数を表示します。
```toml
# ~/.config/starship.toml
@@ -1957,7 +1959,7 @@ diverged = '⇕⇡${ahead_count}⇣${behind_count}'
behind = '⇣${count}'
```
-Use Windows Starship executable on Windows paths in WSL
+以下は WSL で Windows のパスにある Windows 用の Starship 実行ファイルを使用します。
```toml
# ~/.config/starship.toml
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+`gleam` モジュールは、現在インストールされている[Gleam](https://gleam.run/) のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+
+- 現在のディレクトリに`gleam.toml`ファイルが含まれている
+- 現在のディレクトリに拡張子が `.gleam` のファイルが含まれている
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'⭐ '` | Go のシンボルを表すフォーマット文字列 |
+| `detect_extensions` | `['gleam']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['gleam.toml']` | どのファイル名がこのモジュールをアクティブにするか |
+| `style` | `'bold #FFAFF3'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `gleam` モジュールを無効にします |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| --------- | -------- | ----------------------- |
+| version | `v1.0.0` | `gleam` のバージョン |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
+
+*: この変数は、スタイル文字列の一部としてのみ使用することができます。
+
+### 設定例
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
`golang`モジュールは、現在インストールされている[Go](https://golang.org/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
@@ -1982,26 +2022,26 @@ windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.e
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
-| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'🐹 '` | A format string representing the symbol of Go. |
-| `detect_extensions` | `['go']` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `['go.mod', 'go.sum', 'go.work', 'glide.yaml', 'Gopkg.yml', 'Gopkg.lock', '.go-version']` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `['Godeps']` | どのフォルダーがこのモジュールをアクティブにするか |
-| `style` | `'bold cyan'` | モジュールのスタイルです。 |
-| `not_capable_style` | `'bold red'` | The style for the module when the go directive in the go.mod file does not match the installed Go version. |
-| `disabled` | `false` | `golang`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'🐹 '` | Go のシンボルを表すフォーマット文字列 |
+| `detect_extensions` | `['go']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['go.mod', 'go.sum', 'go.work', 'glide.yaml', 'Gopkg.yml', 'Gopkg.lock', '.go-version']` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `['Godeps']` | どのフォルダーがこのモジュールをアクティブにするか |
+| `style` | `'bold cyan'` | モジュールのスタイルです。 |
+| `not_capable_style` | `'bold red'` | go.mod ファイル中の go ディレクティブがインストールされている Go のバージョンと一致しないときのモジュールのスタイル。 |
+| `disabled` | `false` | `golang`モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ----------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
-| version | `v1.12.1` | The version of `go` |
-| mod_version | `1.16` | `go` version requirement as set in the go directive of `go.mod`. Will only show if the version requirement does not match the `go` version. |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| ----------- | --------- | --------------------------------------------------------------------------------- |
+| version | `v1.12.1` | `go` のバージョン |
+| mod_version | `1.16` | `go.mod` の go ディレクティブに設定されている `go` のバージョン要件 バージョン要件が `go` バージョンと一致しない場合にのみ表示されます。 |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -2014,7 +2054,7 @@ windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.e
format = 'via [🏎💨 $version](bold cyan) '
```
-### Using `mod_version`
+### `mod_version` を使用する
```toml
# ~/.config/starship.toml
@@ -2025,16 +2065,16 @@ format = 'via [$symbol($version )($mod_version )]($style)'
## Guix-shell
-The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html) environment. The module will be shown when inside a guix-shell environment.
+`guix_shell`モジュールは、 [guix-shell](https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html) 環境を表示します。 このモジュールは、 guix-shell 環境内にあるときに表示されます。
### オプション
-| オプション | デフォルト | 説明 |
-| ---------- | -------------------------- | ------------------------------------------------------ |
-| `format` | `'via [$symbol]($style) '` | module のフォーマットです。 |
-| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
-| `style` | `'yellow bold'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `guix_shell` module. |
+| オプション | デフォルト | 説明 |
+| ---------- | -------------------------- | ----------------------------- |
+| `format` | `'via [$symbol]($style) '` | module のフォーマットです。 |
+| `symbol` | `'🐃 '` | Guix-shell のシンボルを表すフォーマット文字列。 |
+| `style` | `'yellow bold'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `guix_shell` モジュールを無効にします。 |
### 変数
@@ -2057,14 +2097,14 @@ format = 'via [🐂](yellow bold) '
## Gradle
-The `gradle` module shows the version of the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) currently used in the project directory.
+`gradle` モジュールは、プロジェクトディレクトリで現在使用されている [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) のバージョンを表示します。
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- The current directory contains a `gradle/wrapper/gradle-wrapper.properties` directory.
-- The current directory contains a file ending with `.gradle` or `.gradle.kts`.
+- カレントディレクトリに `gradle/wrapper/gradle-wrapper.properties` ディレクトリが含まれている。
+- カレントディレクトリに `.gradle` または `.gradle.kts` で終わるファイルが含まれている。
-The `gradle` module is only able to read your Gradle Wrapper version from your config file, we don't execute your wrapper, because of the security concerns.
+`gradle` モジュールは、設定ファイルからしか Gradle Wrapper バージョンを読み取れません。セキュリティー上の理由で、 Starship がラッパーを実行することはありません。
### オプション
@@ -2072,19 +2112,19 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `symbol` | `'🅶 '` | Gradle のシンボルを表すフォーマット文字列 |
| `detect_extensions` | `['gradle', 'gradle.kts']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `['gradle']` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `'bold bright-cyan'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `gradle` module. |
-| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
+| `disabled` | `false` | `gradle` モジュールを無効にします。 |
+| `recursive` | `false` | `gradle` ディレクトリの再帰的な検索を有効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| ------- | -------- | ----------------------- |
-| version | `v7.5.1` | The version of `gradle` |
+| version | `v7.5.1` | `gradle`のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style* | | オプション `style` の値をミラーする |
@@ -2092,7 +2132,7 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
## Haskell
-The `haskell` module finds the current selected GHC version and/or the selected Stack snapshot.
+`haskell` モジュールは、現在選択されている GHC バージョンおよび選択されている Stack スナップショットを特定します。
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
@@ -2101,35 +2141,35 @@ The `haskell` module finds the current selected GHC version and/or the selected
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ------------------------------------ | -------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
-| `symbol` | `'λ '` | A format string representing the symbol of Haskell |
-| `detect_extensions` | `['hs', 'cabal', 'hs-boot']` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `['stack.yaml', 'cabal.project']` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `style` | `'bold purple'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `haskell` module. |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | -------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `symbol` | `'λ '` | Haskell の記号を表すフォーマット文字列です。 |
+| `detect_extensions` | `['hs', 'cabal', 'hs-boot']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['stack.yaml', 'cabal.project']` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `style` | `'bold purple'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `haskell` モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| -------------- | ----------- | --------------------------------------------------------------------------------------- |
-| version | | `ghc_version` or `snapshot` depending on whether the current project is a Stack project |
-| snapshot | `lts-18.12` | Currently selected Stack snapshot |
-| ghc\_version | `9.2.1` | Currently installed GHC version |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| -------------- | ----------- | -------------------------------------------------------------------- |
+| version | | 現在のプロジェクトが Stack プロジェクトかどうかに応じて `ghc_version` または `snapshot` を反映します。 |
+| snapshot | `lts-18.12` | 現在選択されている Stack スナップショットです。 |
+| ghc\_version | `9.2.1` | 現在インストールされている GHC バージョンです。 |
+| symbol | | オプション `symbol` の値をミラーします。 |
+| style\* | | オプション `style` の値をミラーします。 |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
## Haxe
-The `haxe` module shows the currently installed version of [Haxe](https://haxe.org/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+`haxe` モジュールは、現在インストールされている[Haxe](https://haxe.org/) のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- The current directory contains a `project.xml`, `Project.xml`, `application.xml`, `haxelib.json`, `hxformat.json` or `.haxerc` file
-- The current directory contains a `.haxelib` or a `haxe_libraries` directory
-- The current directory contains a file with the `.hx` or `.hxml` extension
+- 現在のディレクトリが `project.xml`, `Project.xml`, `application.xml`, `haxelib.json`, `hxformat.json`, `.haxerc` の何れかのファイルを含んでいる。
+- 現在のディレクトリが `.haxelib` または `haxe_library` のディレクトリを含んでいる。
+- 現在のディレクトリに拡張子が `.hx` または `.hxml`のファイルが含まれている。
### オプション
@@ -2140,15 +2180,15 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| `detect_extensions` | `['hx', 'hxml']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `['.haxelib', 'haxe_libraries']` | どのフォルダーがこのモジュールをアクティブにするか |
-| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `symbol` | `'⌘ '` | Helm のシンボルを表すフォーマット文字列 |
| `style` | `'bold fg:202'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `haxe` module. |
+| `disabled` | `false` | `haxe`モジュールを無効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- |
-| version | `v4.2.5` | The version of `haxe` |
+| version | `v4.2.5` | `haxe` のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -2179,15 +2219,15 @@ format = "via [⌘ $version](bold fg:202) "
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['helmfile.yaml', 'Chart.yaml']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `symbol` | `'⎈ '` | A format string representing the symbol of Helm. |
+| `symbol` | `'⎈ '` | Helm のシンボルを表すフォーマット文字列 |
| `style` | `'bold white'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `helm` module. |
+| `disabled` | `false` | `helm` モジュールを無効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- |
-| version | `v3.1.1` | The version of `helm` |
+| version | `v3.1.1` | `helm` のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -2208,29 +2248,29 @@ format = 'via [⎈ $version](bold white) '
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | SSHセッションに接続されている場合にのみホスト名を表示します。 |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | この文字が最初にマッチするまでをホスト名と認識します。 `'.'` will stop after the first dot. `''` will disable any truncation. |
-| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | module のフォーマットです。 |
-| `style` | `'bold dimmed green'` | モジュールのスタイルです。 |
-| `disabled` | `false` | `hostname`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------ |
+| `ssh_only` | `true` | SSHセッションに接続されている場合にのみホスト名を表示します。 |
+| `ssh_symbol` | `'🌐 '` | SSH セッションに接続しているときのシンボルを表すフォーマット文字列。 |
+| `trim_at` | `'.'` | この文字が最初にマッチするまでをホスト名と認識します。 `'.'` は最初の . 以降の文字列を切り捨てます。 `''`を指定した場合、文字列の切り捨ては行われません。 |
+| `detect_env_vars` | `[]` | このモジュールを活性化する環境変数。 |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | module のフォーマットです。 |
+| `style` | `'bold dimmed green'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `hostname`モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ---------- | ---------- | ----------------------------------------------------- |
-| hostname | `computer` | The hostname of the computer |
-| style\* | | オプション `style` の値をミラーする |
-| ssh_symbol | `'🌏 '` | The symbol to represent when connected to SSH session |
+| 変数 | 設定例 | 説明 |
+| ---------- | ---------- | ------------------------ |
+| hostname | `computer` | コンピュータのホスト名です。 |
+| style\* | | オプション `style` の値をミラーします。 |
+| ssh_symbol | `'🌏 '` | SSHセッションに接続していることを表すシンボル |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
### 設定例
-#### Always show the hostname
+#### ホスト名を常に表示する
```toml
# ~/.config/starship.toml
@@ -2242,7 +2282,7 @@ trim_at = '.companyname.com'
disabled = false
```
-#### Hide the hostname in remote tmux sessions
+#### リモートのtmuxセッションでホスト名を非表示にする
```toml
# ~/.config/starship.toml
@@ -2257,7 +2297,7 @@ disabled = false
`Java`モジュールは、現在インストールされている[Java](https://www.oracle.com/java/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `deps.edn`, `project.clj`, `build.boot`, or `.sdkmanrc` file
+- 現在のディレクトリに `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `deps.edn`, `project.clj`, `build.boot`, `.sdkmanrc` の何れかのファイルが含まれている
- カレントディレクトリに拡張子が`.java`、`.class`、`.gradle`、`.jar`、`.clj`または`.cljc`のファイルが含まれている
### オプション
@@ -2269,7 +2309,7 @@ disabled = false
| `detect_extensions` | `['java', 'class', 'gradle', 'jar', 'cljs', 'cljc']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['pom.xml', 'build.gradle.kts', 'build.sbt', '.java-version', 'deps.edn', 'project.clj', 'build.boot', '.sdkmanrc']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `symbol` | `'☕ '` | A format string representing the symbol of Java |
+| `symbol` | `'☕ '` | Java の記号を表すフォーマット文字列です。 |
| `style` | `'red dimmed'` | モジュールのスタイルです。 |
| `disabled` | `false` | `java`モジュールを無効にします。 |
@@ -2277,7 +2317,7 @@ disabled = false
| 変数 | 設定例 | 説明 |
| --------- | ----- | ----------------------- |
-| version | `v14` | The version of `java` |
+| version | `v14` | `java` のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -2294,39 +2334,39 @@ symbol = '🌟 '
## ジョブ
-`jobs`モジュールには、実行中のジョブの現在の数が表示されます。 このモジュールは、実行中のバックグラウンドジョブがある場合にのみ表示されます。 The module will show the number of jobs running if there are at least 2 jobs, or more than the `number_threshold` config value, if it exists. The module will show a symbol if there is at least 1 job, or more than the `symbol_threshold` config value, if it exists. You can set both values to 0 in order to _always_ show the symbol and number of jobs, even if there are 0 jobs running.
+`jobs`モジュールには、実行中のジョブの現在の数が表示されます。 このモジュールは、実行中のバックグラウンドジョブがある場合にのみ表示されます。 設定変数 `number_threshold` が存在すればその値以上、さもなければ2つ以上のジョブがある場合に、実行中のジョブの数を表示します。 1つ以上のジョブがある、設定変数 `symbol_threshold` が存在すればその数以上、さもなければ1つ以上のジョブがある場合に、シンボルを表示します。 ジョブがない時も含めて_常_にシンボルとジョブ数を表示するには、両方に 0 を設定します。
-The default functionality is:
+デフォルトの機能は次のとおりです。
-- 0 jobs -> Nothing is shown.
-- 1 job -> `symbol` is shown.
-- 2 jobs or more -> `symbol` + `number` are shown.
+- 0個のジョブ -> 何も表示しません。
+- 1個のジョブ -> `symbol` を表示します。
+- 2個以上のジョブ-> `symbol` + `number` を表示します。
::: warning
-This module is not supported on tcsh and nu.
+このモジュールは tcsh と nu ではサポートされません。
:::
::: warning
-The `threshold` option is deprecated, but if you want to use it, the module will show the number of jobs running if there is more than 1 job, or more than the `threshold` config value, if it exists. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
+オプション `threshold` は非推奨になりましたが、`threshold` が指定されている場合には、モジュールは走っているジョブの数を表示します。 `threshold` が 0 に設定されている場合は、ジョブが走っていない場合にもモジュールが表示されます。
:::
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------ | ----------------------------- | ------------------------------------------------------------------------ |
-| `threshold`* | `1` | 超過した場合、ジョブの数を表示します。 |
-| `symbol_threshold` | `1` | Show `symbol` if the job count is at least `symbol_threshold`. |
-| `number_threshold` | `2` | Show the number of jobs if the job count is at least `number_threshold`. |
-| `format` | `'[$symbol$number]($style) '` | module のフォーマットです。 |
-| `symbol` | `'✦'` | The string used to represent the `symbol` variable. |
-| `style` | `'bold blue'` | モジュールのスタイルです。 |
-| `disabled` | `false` | `jobs`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------ | ----------------------------- | ------------------------------------------------------ |
+| `threshold`* | `1` | 超過した場合、ジョブの数を表示します。 |
+| `symbol_threshold` | `1` | ジョブの数が少なくとも `symbol_threshold` ある場合に `symbol` を表示します。 |
+| `number_threshold` | `2` | ジョブの数が少なくとも `number_threshold` ある場合に、ジョブ数を表示します。 |
+| `format` | `'[$symbol$number]($style) '` | module のフォーマットです。 |
+| `symbol` | `'✦'` | `symbol` 変数を表すために使用される文字列。 |
+| `style` | `'bold blue'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `jobs`モジュールを無効にします。 |
-*: This option is deprecated, please use the `number_threshold` and `symbol_threshold` options instead.
+*: このオプションは非推奨です。代わりに `number_threshold` と `symbol_threshold` オプションを指定してください。
### 変数
@@ -2432,19 +2472,19 @@ symbol = '🅺 '
# ~/.config/starship.toml
[kotlin]
-# Uses the Kotlin Compiler binary to get the installed version
+# Kotlinコンパイラバイナリを使ってバージョンを確認する
kotlin_binary = 'kotlinc'
```
## Kubernetes
-Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 環境変数`$KUBECONFIG`が設定されている場合、このモジュールはそれを利用し、`~/.kube/config`を利用しません。
+現在の[Kubernetes コンテキスト](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context)名を表示します。 kubeconfigファイルに設定されている場合は、名前空間、ユーザー、クラスターも表示します。 名前空間は kubeconfig ファイルの中で設定する必要があります。次のようにして行います: `kubectl config set-context starship-context --namespace astronaut`。 同様に、ユーザーとクラスターは `kubectl config set-context starship-context --user starship-user` と `kubectl config set-context starship-context ---cluster starship-cluster` で設定できます。 環境変数 `$KUBECONFIG` が設定されている場合、このモジュールはそれを利用し、 `~/.kube/config` を利用しません。
::: tip
このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで `disabled` を `false` に設定します。
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+モジュールが有効化されているとき、`detect_env_vars`, `detect_extensions`, `detect_files`, `detect_folders` の何れかのオプションが設定されていない限りモジュールは常に表示されます。これらのオプションが設定されている場合は、対応する条件が満たされるディレクトリ内にいるときまたは環境変数が存在するときに、モジュールが表示されます。
:::
@@ -2452,26 +2492,27 @@ When the module is enabled it will always be active, unless any of `detect_exten
::: warning
-The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+`context_aliases` と `user_aliases` オプションは非推奨になりました。 代わりに `contexts` と対応するオプション `context_alias` と `user_alias` をお使いください。
:::
-| オプション | デフォルト | 説明 |
-| ------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
-| `symbol` | `'☸ '` | クラスター名の前に表示されるシンボルを表すフォーマット文字列。 |
-| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | module のフォーマットです。 |
-| `style` | `'cyan bold'` | モジュールのスタイルです。 |
-| `context_aliases`* | `{}` | コンテキストの表示エイリアスを定義するテーブル。 |
-| `user_aliases`* | `{}` | Table of user aliases to display. |
-| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
-| `disabled` | `true` | `kubernetes` モジュールを無効にする。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | ---------------------------------------------------- | ------------------------------- |
+| `symbol` | `'☸ '` | クラスター名の前に表示されるシンボルを表すフォーマット文字列。 |
+| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | モジュールのフォーマットです。 |
+| `style` | `'cyan bold'` | モジュールのスタイルです。 |
+| `context_aliases`* | `{}` | 表示するコンテキストエイリアスを定義するテーブル。 |
+| `user_aliases`* | `{}` | 表示するユーザーエイリアスを定義するテーブル。 |
+| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `detect_env_vars` | `[]` | このモジュールを活性化する環境変数です。 |
+| `contexts` | `[]` | 特定のコンテキストのカスタマイズされたスタイルとシンボルです。 |
+| `disabled` | `true` | `kubernetes` モジュールを無効にする。 |
-*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+*: このオプションは非推奨になりました。代わりに `contexts` を対応するオプション `context_alias` と `user_alias` と一緒に追加してください。
-To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+特定の環境におけるモジュールのスタイルを変更するには、以下の設定をリスト `contexts` に含めます。
| 変数 | 説明 |
| ----------------- | ---------------------------------------------------------------------------------------- |
@@ -2486,14 +2527,14 @@ Note that all regular expression are anchored with `^$` and so must mat
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | -------------------- | -------------------------------------- |
-| context | `starship-context` | The current kubernetes context name |
-| namespace | `starship-namespace` | 設定されている場合、現在の Kubernetes の namespace 名 |
-| user | `starship-user` | If set, the current kubernetes user |
-| cluster | `starship-cluster` | If set, the current kubernetes cluster |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | -------------------- | -------------------------------- |
+| context | `starship-context` | 現在の Kubernetes のコンテキスト名 |
+| namespace | `starship-namespace` | 設定されている場合、現在の Kubernetes の名前空間名 |
+| user | `starship-user` | 設定されている場合、現在の Kubernetes のユーザー名 |
+| cluster | `starship-cluster` | 設定されている場合、現在の Kubernetes のクラスター名 |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -2510,7 +2551,7 @@ contexts = [
]
```
-Only show the module in directories that contain a `k8s` file.
+以下は `k8s` ファイルを含むディレクトリの中でのみモジュールを表示します。
```toml
# ~/.config/starship.toml
@@ -2700,14 +2741,14 @@ By default the Meson project name is displayed, if `$MESON_DEVENV` is set.
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ---------------------------------- | ----------------------------------------------------------------------------------------- |
-| `truncation_length` | `2^32 - 1` | Truncates a project name to `N` graphemes. |
-| `truncation_symbol` | `'…'` | The symbol used to indicate a project name was truncated. You can use `''` for no symbol. |
-| `format` | `'via [$symbol$project]($style) '` | module のフォーマットです。 |
-| `symbol` | `'⬢ '` | The symbol used before displaying the project name. |
-| `style` | `'blue bold'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `meson` module. |
+| オプション | デフォルト | 説明 |
+| ------------------- | ---------------------------------- | -------------------------------------------------------------------------- |
+| `truncation_length` | `2^32 - 1` | Truncates a project name to `N` graphemes. |
+| `truncation_symbol` | `'…'` | The symbol used to indicate a project name was truncated. `''` で記号なしにできます。 |
+| `format` | `'via [$symbol$project]($style) '` | module のフォーマットです。 |
+| `symbol` | `'⬢ '` | The symbol used before displaying the project name. |
+| `style` | `'blue bold'` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `meson` module. |
### 変数
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | モジュールのスタイルです。 |
+| `format` | `'[$symbol$name]($style)'` | module のフォーマットです。 |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| --------- | ----------- | ---------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
+
+### 設定例
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
`nim`モジュールは、現在インストールされている[Nim](https://nim-lang.org/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
@@ -2943,6 +3013,43 @@ format = 'via [🤖 $version](bold green) '
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | ---------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | Zig のバージョンの前に表示されるシンボルです。 |
+| `style` | `'bold bright-blue'` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| --------- | ------------- | ----------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
+
+*: この変数は、スタイル文字列の一部としてのみ使用することができます。
+
+### 設定例
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3757,7 +3864,7 @@ The `shell` module shows an indicator for currently used shell.
| 変数 | デフォルト | 説明 |
| --------- | ----- | ---------------------------------------------------------- |
| indicator | | Mirrors the value of `indicator` for currently used shell. |
-| style\* | | オプション `style` の値をミラーする. |
+| style\* | | オプション `style` の値のミラー。 |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -3897,25 +4004,25 @@ format = "via [S $version](blue bold)"
## Spack
-The `spack` module shows the current [Spack](https://spack.readthedocs.io/en/latest/) environment, if `$SPACK_ENV` is set.
+`spack` モジュールは、`$SPACK_ENV` が設定されているときに、現在の [Spack](https://spack.readthedocs.io/en/latest/) 環境を表示します。
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
-| `truncation_length` | `1` | The number of directories the environment path should be truncated to. `0`は切り捨てがないことを意味します。 [`directory`](#directory)もご覧ください。 |
-| `symbol` | `'🅢 '` | 環境名の直前に使用されるシンボルです。 |
-| `style` | `'bold blue'` | モジュールのスタイルです。 |
-| `format` | `'via [$symbol$environment]($style) '` | module のフォーマットです。 |
-| `disabled` | `false` | Disables the `spack` module. |
+| オプション | デフォルト | 説明 |
+| ------------------- | -------------------------------------- | ------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | 環境パスを切り捨てて表示するディレクトリの数。 `0`は切り捨てがないことを意味します。 [`directory`](#directory)もご覧ください。 |
+| `symbol` | `'🅢 '` | 環境名の直前に使用されるシンボルです。 |
+| `style` | `'bold blue'` | モジュールのスタイルです。 |
+| `format` | `'via [$symbol$environment]($style) '` | module のフォーマットです。 |
+| `disabled` | `false` | `spack` モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ----------- | ------------ | ----------------------------- |
-| environment | `astronauts` | The current spack environment |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| ----------- | ------------ | ----------------------- |
+| environment | `astronauts` | 現在の spack 環境 |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -3930,7 +4037,7 @@ format = '[$symbol$environment](dimmed blue) '
## Status
-The `status` module displays the exit code of the previous command. If $success_symbol is empty (default), the module will be shown only if the exit code is not `0`. The status code will cast to a signed 32-bit integer.
+`status` モジュールは、直前のコマンドの終了ステータスを表示します。 $success_symbol が空 (既定) の場合、モジュールは終了ステータスが `0` でない場合にのみ表示されます。 終了ステータスは符号付き32ビット整数にキャストされます。
::: tip
@@ -3940,38 +4047,38 @@ The `status` module displays the exit code of the previous command. If $success_
### オプション
-| オプション | デフォルト | 説明 |
-| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
-| `format` | `'[$symbol$status]($style) '` | The format of the module |
-| `symbol` | `'❌'` | The symbol displayed on program error |
-| `success_symbol` | `''` | The symbol displayed on program success |
-| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
-| `style` | `'bold red'` | モジュールのスタイルです。 |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `pipestatus` | `false` | Enable pipestatus reporting |
-| `pipestatus_separator` | | | The symbol used to separate pipestatus segments (supports formatting) |
-| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
-| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
-| `disabled` | `true` | Disables the `status` module. |
+| オプション | デフォルト | 説明 |
+| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------- |
+| `format` | `'[$symbol$status]($style) '` | モジュールのフォーマットです。 |
+| `symbol` | `'❌'` | プログラムエラー時に表示される記号です。 |
+| `success_symbol` | `''` | プログラム成功時に表示される記号です。 |
+| `not_executable_symbol` | `'🚫'` | ファイルが実行可能ファイルでないときに表示されるシンボルです。 |
+| `not_found_symbol` | `'🔍'` | コマンドが見つからないときに表示されるシンボルです。 |
+| `sigint_symbol` | `'🧱'` | SIGINT (Ctrl + c) に際して表示されるシンボルです。 |
+| `signal_symbol` | `'⚡'` | 任意のシグナルに対して表示されるシンボルです。 |
+| `style` | `'bold red'` | モジュールのスタイルです。 |
+| `recognize_signal_code` | `true` | 終了ステータスからシグナルへのマッピングを有効にします。 |
+| `map_symbol` | `false` | 終了ステータスからシンボルへのマッピングを有効にします。 |
+| `pipestatus` | `false` | パイプステータス表示を有効にします。 |
+| `pipestatus_separator` | | | パイプラインの各要素を分割するのに使う記号を指定します。フォーマット文字列がサポートされます。 |
+| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | コマンドがパイプラインである場合のモジュールのフォーマットです。 |
+| `pipestatus_segment_format` | | 指定されている場合、パイプステータスの要素を書式設定する際に `format` の代わりに使われます。 |
+| `disabled` | `true` | `status`モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| -------------- | ------- | ------------------------------------------------------------------------------------------ |
-| status | `127` | The exit code of the last command |
-| hex_status | `0x7F` | The exit code of the last command in hex |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| -------------- | ------- | ------------------------------------------------------- |
+| status | `127` | 直前のコマンドの終了ステータス |
+| hex_status | `0x7F` | 直前のコマンドの終了ステータスを16進数で表記したもの |
+| int | `127` | 直前のコマンドの終了ステータス |
+| common_meaning | `ERROR` | シグナルでない場合、終了ステータスの意味 |
+| signal_number | `9` | シグナルで終了した場合、終了ステータスに対応するシグナル番号 |
+| signal_name | `KILL` | シグナルで終了した場合、終了ステータスに対応するシグナル名 |
+| maybe_int | `7` | 対応する意味が見つからない場合にのみ、終了コード番号を含みます。 |
+| pipestatus | | パイプラインプログラムの終了ステータスの表示です。pipestatus_format の中でのみ使用できます。 |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -3991,7 +4098,7 @@ disabled = false
## Sudo
-The `sudo` module displays if sudo credentials are currently cached. The module will only be shown if credentials are cached.
+`sudo` モジュールは、sudo 資格情報が現在キャッシュされているかどうかを表示します。 モジュールは資格情報がキャッシュされている場合にのみ表示されます。
::: tip
@@ -4001,13 +4108,13 @@ The `sudo` module displays if sudo credentials are currently cached. The module
### オプション
-| オプション | デフォルト | 説明 |
-| --------------- | ------------------------ | ------------------------------------------------------- |
-| `format` | `'[as $symbol]($style)'` | The format of the module |
-| `symbol` | `'🧙 '` | The symbol displayed when credentials are cached |
-| `style` | `'bold blue'` | モジュールのスタイルです。 |
-| `allow_windows` | `false` | Since windows has no default sudo, default is disabled. |
-| `disabled` | `true` | Disables the `sudo` module. |
+| オプション | デフォルト | 説明 |
+| --------------- | ------------------------ | --------------------------------------- |
+| `format` | `'[as $symbol]($style)'` | モジュールのフォーマットです。 |
+| `symbol` | `'🧙 '` | 資格情報がキャッシュされたときに表示されるシンボルです。 |
+| `style` | `'bold blue'` | モジュールのスタイルです。 |
+| `allow_windows` | `false` | Windows にはデフォルトで sudo がないため、既定で無効になります。 |
+| `disabled` | `true` | `sudo` モジュールを無効にします。 |
### 変数
@@ -4030,7 +4137,7 @@ disabled = false
```
```toml
-# On windows
+# Windows では
# $HOME\.starship\config.toml
[sudo]
@@ -4051,18 +4158,18 @@ disabled = false
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'🐦 '` | A format string representing the symbol of Swift |
+| `symbol` | `'🐦 '` | Swift のシンボルを表すフォーマット文字列 |
| `detect_extensions` | `['swift']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['Package.swift']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `'bold 202'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `swift` module. |
+| `disabled` | `false` | `swift` モジュールを無効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- |
-| version | `v5.2.4` | The version of `swift` |
+| version | `v5.2.4` | `swift` のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -4107,12 +4214,12 @@ Terraformのバージョンはデフォルトでは表示されません。多
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | ---------- | ----------------------- |
-| version | `v0.12.24` | `terraform` のバージョン |
-| workspace | `default` | 現在のTerraformワークスペース |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | ---------- | ------------------------ |
+| version | `v0.12.24` | `terraform` のバージョン |
+| workspace | `default` | 現在のTerraformワークスペース |
+| symbol | | オプション `symbol` の値をミラーします |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -4148,24 +4255,24 @@ format = '[🏎💨 $workspace]($style) '
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
-| `format` | `'at [$time]($style) '` | モジュールのフォーマット文字列。 |
-| `use_12hr` | `false` | 12時間のフォーマットを有効にします。 |
-| `time_format` | この表の下を参照してください | 時刻のフォーマットに使用される[クロノフォーマット文字列](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) です。 |
-| `style` | `'bold yellow'` | モジュールのスタイルです。 |
-| `utc_time_offset` | `'local'` | 使用するUTCオフセットを設定します。 Range from -24 < x < 24. フロートが30/45分のタイムゾーンオフセットに対応できるようにします。 |
-| `disabled` | `true` | `time`モジュールを無効にします。 |
-| `time_range` | `'-'` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
+| オプション | デフォルト | 説明 |
+| ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------- |
+| `format` | `'at [$time]($style) '` | モジュールのフォーマット文字列。 |
+| `use_12hr` | `false` | 12時間のフォーマットを有効にします。 |
+| `time_format` | この表の下を参照してください | 時刻のフォーマットに使用される[クロノフォーマット文字列](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) です。 |
+| `style` | `'bold yellow'` | モジュールのスタイルです。 |
+| `utc_time_offset` | `'local'` | 使用するUTCオフセットを設定します。 -24 から 24 までの間で設定可能です。 フロートが30/45分のタイムゾーンオフセットに対応できるようにします。 |
+| `disabled` | `true` | `time`モジュールを無効にします。 |
+| `time_range` | `'-'` | モジュールを表示する時間帯を設定します。 時刻は24時間形式で指定する必要があります。 |
-If `use_12hr` is `true`, then `time_format` defaults to `'%r'`. Otherwise, it defaults to `'%T'`. Manually setting `time_format` will override the `use_12hr` setting.
+`use_12hr` が `true` の場合、`format` のデフォルトは `'%r'` です。 それ以外の場合、デフォルトは`'%T'`です。 `time_format` を手動で設定すると、設定 `use_12hr` が上書きされます。
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | ---------- | ---------------------- |
-| time | `13:08:10` | The current time. |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | ---------- | ----------------------- |
+| time | `13:08:10` | 現在時刻 |
+| style\* | | オプション `style` の値をミラーします |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -4184,12 +4291,12 @@ time_range = '10:00:00-14:00:00'
## Typst
-The `typst` module shows the current installed version of Typst used in a project.
+`typst` モジュールは、現在インストールされてプロジェクトで使われている Typst のバージョンを表示します。
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
- カレントディレクトリに`template.typ`ファイルが含まれている
-- The current directory contains any `*.typ` file
+- カレントディレクトリに拡張子が `.typ` のファイルが含まれている
### オプション
@@ -4206,12 +4313,12 @@ The `typst` module shows the current installed version of Typst used in a projec
### 変数
-| 変数 | 設定例 | 説明 |
-| ------------- | --------- | ----------------------------------------------- |
-| version | `v0.9.0` | The version of `typst`, alias for typst_version |
-| typst_version | `default` | The current Typst version |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| ------------- | --------- | ------------------------------------- |
+| version | `v0.9.0` | `typst`のバージョン。typst_version のエイリアスです。 |
+| typst_version | `default` | 現在の Typst バージョン |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -4219,39 +4326,40 @@ The `typst` module shows the current installed version of Typst used in a projec
`username`モジュールはアクティブなユーザーのユーザー名を表示します。 次の条件のいずれかが満たされると、モジュールが表示されます:
-- The current user is root/admin
+- 現在のユーザーが root/admin である
- カレントユーザーが、ログインしているユーザーとは異なる
- ユーザーがSSHセッションとして接続されている
- `show_always`変数がtrueに設定されている
-- The array `detect_env_vars` contains at least the name of one environment variable, that is set
+- 配列 `detect_env_var` に、少なくとも1つの現在シェルで設定されている環境変数の名前が含まれている
::: tip
-SSH connection is detected by checking environment variables `SSH_CONNECTION`, `SSH_CLIENT`, and `SSH_TTY`. If your SSH host does not set up these variables, one workaround is to set one of them with a dummy value.
+SSH接続は、環境変数 `SSH_CONNECTION`、 `SSH_CLIENT`、および `SSH_TTY` をチェックすることで検出されます。 お使いの SSH ホストがこれらの変数を設定しない場合、回避策として例えばこれらの変数にダミー値を設定してください。
:::
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | ----------------------- | --------------------------------------------------------- |
-| `style_root` | `'bold red'` | The style used when the user is root/admin. |
-| `style_user` | `'bold yellow'` | 非rootユーザーに使用されるスタイルです。 |
-| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
-| `format` | `'[$user]($style) in '` | module のフォーマットです。 |
-| `show_always` | `false` | `username` モジュールを常に表示します。 |
-| `disabled` | `false` | `username` モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ----------------- | ----------------------- | --------------------------------- |
+| `style_root` | `'bold red'` | ユーザーが root/admin のときに使用されるスタイルです。 |
+| `style_user` | `'bold yellow'` | 非rootユーザーに使用されるスタイルです。 |
+| `detect_env_vars` | `[]` | このモジュールを活性化する環境変数。 |
+| `format` | `'[$user]($style) in '` | module のフォーマットです。 |
+| `show_always` | `false` | `username` モジュールを常に表示します。 |
+| `disabled` | `false` | `username` モジュールを無効にします。 |
+| `aliases` | `{}` | システムユーザー名を別のものに置換します。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| ------- | ------------ | ------------------------------------------------------------------------------------------- |
-| `style` | `'red bold'` | Mirrors the value of option `style_root` when root is logged in and `style_user` otherwise. |
-| `user` | `'matchai'` | The currently logged-in user ID. |
+| 変数 | 設定例 | 説明 |
+| ------- | ------------ | -------------------------------------------------------------------------- |
+| `style` | `'red bold'` | root がログインしている場合は `style_root` オプションの値をミラーし、そうでない場合は `style_user` をミラーします。 |
+| `user` | `'matchai'` | 現在ログインしているユーザーID。 |
### 設定例
-#### Always show the hostname
+#### ホスト名を常に表示する
```toml
# ~/.config/starship.toml
@@ -4262,9 +4370,10 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
-#### Hide the hostname in remote tmux sessions
+#### リモートのtmuxセッションでホスト名を非表示にする
```toml
# ~/.config/starship.toml
@@ -4287,20 +4396,20 @@ disabled = false
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'⍱ '` | A format string representing the symbol of Vagrant. |
+| `symbol` | `'⍱ '` | Vagrant のシンボルを表すフォーマット文字列. |
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['Vagrantfile']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `'cyan bold'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `vagrant` module. |
+| `disabled` | `false` | `vagrant`モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | ---------------- | ------------------------ |
-| version | `Vagrant 2.2.10` | The version of `Vagrant` |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | ---------------- | ----------------------- |
+| version | `Vagrant 2.2.10` | `Vagrant` のバージョン |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -4326,18 +4435,18 @@ format = 'via [⍱ $version](bold white) '
| ------------------- | -------------------------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'V '` | A format string representing the symbol of V |
+| `symbol` | `'V '` | V のシンボルを表すフォーマット文字列 |
| `detect_extensions` | `['v']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['v.mod', 'vpkg.json', '.vpkg-lock.json' ]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `'blue bold'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `vlang` module. |
+| `disabled` | `false` | `vlang`モジュールを無効にします。 |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | ------ | ----------------------- |
-| version | `v0.2` | The version of `v` |
+| version | `v0.2` | `v` のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -4351,24 +4460,24 @@ format = 'via [V $version](blue bold) '
## VCSH
-The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/vcsh) repository. The module will be shown only if a repository is currently in use.
+`vcsh` モジュールは、現在アクティブな [VCSH](https://github.com/RichiH/vcsh) リポジトリを表示します。 モジュールは、現在使用中のリポジトリがある場合にのみ表示されます。
### オプション
-| オプション | デフォルト | 説明 |
-| ---------- | -------------------------------- | ------------------------------------------------------ |
-| `symbol` | `''` | The symbol used before displaying the repository name. |
-| `style` | `'bold yellow'` | モジュールのスタイルです。 |
-| `format` | `'vcsh [$symbol$repo]($style) '` | module のフォーマットです。 |
-| `disabled` | `false` | Disables the `vcsh` module. |
+| オプション | デフォルト | 説明 |
+| ---------- | -------------------------------- | ------------------- |
+| `symbol` | `''` | リポジトリ名の前に表示される記号です。 |
+| `style` | `'bold yellow'` | モジュールのスタイルです。 |
+| `format` | `'vcsh [$symbol$repo]($style) '` | module のフォーマットです。 |
+| `disabled` | `false` | `vcsh`モジュールを無効にします。 |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | ------------------------------------------- | -------------------------- |
-| repo | `dotfiles` if in a VCSH repo named dotfiles | The active repository name |
-| symbol | | オプション `symbol` の値をミラーする |
-| style\* | `black bold dimmed` | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | --------------------------------------------- | ----------------------- |
+| repo | `dotfiles` (dotfiles という名の VCSH リポジトリ内にいる場合) | アクティブなリポジトリ名 |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | `black bold dimmed` | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
@@ -4383,7 +4492,7 @@ format = '[🆅 $repo](bold blue) '
## Zig
-By default the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます:
+既定で `zig`モジュールは、現在インストールされている[Zig](https://ziglang.org/)のバージョンを表示します。 このモジュールは次の条件のいずれかが満たされると表示されます:
- カレントディレクトリに拡張子が`.zig`のファイルが含まれている
@@ -4393,9 +4502,9 @@ By default the `zig` module shows the currently installed version of [Zig](https
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'↯ '` | The symbol used before displaying the version of Zig. |
+| `symbol` | `'↯ '` | Zig のバージョンの前に表示されるシンボルです。 |
| `style` | `'bold yellow'` | モジュールのスタイルです。 |
-| `disabled` | `false` | Disables the `zig` module. |
+| `disabled` | `false` | `zig` モジュールを無効にします。 |
| `detect_extensions` | `['zig']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
@@ -4404,7 +4513,7 @@ By default the `zig` module shows the currently installed version of [Zig](https
| 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- |
-| version | `v0.6.0` | The version of `zig` |
+| version | `v0.6.0` | `zig` のバージョン |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -4419,100 +4528,100 @@ By default the `zig` module shows the currently installed version of [Zig](https
symbol = '⚡️ '
```
-## Custom commands
+## カスタムコマンド
-The `custom` modules show the output of some arbitrary commands.
+`custom` モジュールは、任意のコマンドの出力を表示します。
-These modules will be shown if any of the following conditions are met:
+以下のいずれかの条件が満たされる場合に、モジュールが表示されます:
-- The current directory contains a file whose name is in `detect_files`
-- The current directory contains a directory whose name is in `detect_folders`
-- The current directory contains a file whose extension is in `detect_extensions`
-- The `when` command returns 0
-- The current Operating System (std::env::consts::OS) matches with `os` field if defined.
+- 現在のディレクトリに `detect_files` に挙げた名前のファイルが存在する。
+- 現在のディレクトリに `detect_folders` に挙げた名前のサブディレクトリが存在する。
+- 現在のディレクトリに `detect_extensions` に挙げた拡張子に一致するファイルが存在する。
+- `when` コマンドが 0 を返す。
+- `os` フィールドが指定されている場合、現在のオペレーティング システム (std::env::consts::OS) がそれに一致する。
::: tip
-Multiple custom modules can be defined by using a `.`.
+`.` を使用して複数のカスタムモジュールを定義できます。
:::
::: tip
-The order in which custom modules are shown can be individually set by including `${custom.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `custom` module will simply show all custom modules in the order they were defined.
+カスタムモジュールが表示される順序は、`${custom.foo}` (ドットが含まれるので `${...}` を使う必要があります) をトップレベルの `format` に入れることで個別に設定できます。 既定では、 `custom` モジュールは、単にすべての custom モジュールを定義順で表示します。
:::
::: tip
-[Issue #1252](https://github.com/starship/starship/discussions/1252) contains examples of custom modules. If you have an interesting example not covered there, feel free to share it there!
+[イシュー #1252](https://github.com/starship/starship/discussions/1252) にはカスタムモジュールの例が含まれています。 紹介されていない興味深い用例をお持ちでしたら、そちらで気軽に共有してください!
:::
-::: warning Command output is printed unescaped to the prompt
+::: warning コマンド出力はエスケープされずにプロンプトに出力されます
-Whatever output the command generates is printed unmodified in the prompt. This means if the output contains special sequences that are interpreted by your shell they will be expanded when displayed. These special sequences are shell specific, e.g. you can write a command module that writes bash sequences, e.g. `\h`, but this module will not work in a fish or zsh shell.
+コマンドが生成するいかなる出力もそのままプロンプト内に表示されます。 つまり、出力にシェルによって解釈される特殊なシーケンスが含まれている場合、それらが表示時に展開されます。 特殊なシーケンスは各シェル固有のものです。例えば `\h` などの Bash で使われるシーケンスを出力するコマンドモジュールを作成することができますが、そのようなモジュールは Fish や Zsh などのシェルでは動きません。
-Format strings can also contain shell specific prompt sequences, e.g. [Bash](https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html), [Zsh](https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html).
+フォーマット文字列には、シェル固有のプロンプトシーケンスを含めることもできます。例えば [Bash](https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html), [Zsh](https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html).
:::
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `command` | `''` | The command whose output should be printed. The command will be passed on stdin to the shell. |
-| `when` | `false` | Either a boolean value (`true` or `false`, without quotes) or a string shell command used as a condition to show the module. In case of a string, the module will be shown if the command returns a `0` status code. |
-| `require_repo` | `false` | If `true`, the module will only be shown in paths containing a (git) repository. This option alone is not sufficient display condition in absence of other options. |
-| `shell` | | [この表の下を参照してください](#custom-command-shell) |
-| `説明` | `''` | The description of the module that is shown when running `starship explain`. |
-| `detect_files` | `[]` | The files that will be searched in the working directory for a match. |
-| `detect_folders` | `[]` | The directories that will be searched in the working directory for a match. |
-| `detect_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'` | モジュールのスタイルです。 |
-| `format` | `'[$symbol($output )]($style)'` | 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). |
-| `use_stdin` | | An optional boolean value that overrides whether commands should be forwarded to the shell via the standard input or as an argument. If unset standard input is used by default, unless the shell does not support it (cmd, nushell). Setting this disables shell-specific argument handling. |
-| `ignore_timeout` | `false` | Ignore global `command_timeout` setting and keep running external commands, no matter how long they take. |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `command` | `''` | その出力が表示されるコマンド。 コマンドはシェルの標準入力に渡されます。 |
+| `when` | `false` | ブール値 (クォートなしの `true` または `false`) かモジュールを表示する条件として使用されるシェルコマンド文字列。 文字列の場合、コマンドが終了ステータス `0` を返したときにモジュールが表示されます。 |
+| `require_repo` | `false` | `true`の場合、モジュールは (Git の) リポジトリを含むパスにのみ表示されます。 他のオプションが指定されていない場合、このオプション単体では表示条件として不十分です。 |
+| `shell` | | [この表の下を参照してください](#custom-command-shell) |
+| `説明` | `''` | `starship explain` 実行の際に表示されるモジュールの説明。 |
+| `detect_files` | `[]` | 表示条件として確認する作業ディレクトリ内のファイル名を指定します。 |
+| `detect_folders` | `[]` | 表示条件として確認する作業ディレクトリ内のディレクトリ名を指定します。 |
+| `detect_extensions` | `[]` | 表示条件として確認する作業ディレクトリ内のファイルの拡張子を指定します。 |
+| `symbol` | `''` | コマンド出力の前に表示される記号です。 |
+| `style` | `'bold green'` | モジュールのスタイルです。 |
+| `format` | `'[$symbol($output )]($style)'` | module のフォーマットです。 |
+| `disabled` | `false` | `custom` モジュールを無効にします。 |
+| `os` | | モジュールが表示されるオペレーティングシステムの名前 (unix, linux, macos, windows, ...)。 [利用可能な値](https://doc.rust-lang.org/std/env/consts/constant.OS.html) を参照してください。 |
+| `use_stdin` | | シェルに対してコマンドを標準出力を介して指定するか引数を介して指定するかの振る舞い上書きするおまけの boolen 値の設定です。 指定がない場合、(cmd, nushell などのようにシェルのサポート外でない限り) 標準入力が既定で使われます。 設定するとシェル固有の引数処理を無効にします。 |
+| `ignore_timeout` | `false` | グローバルな `command_timeout` 設定を無視して、いくら時間がかかっても外部コマンド実行を継続します。 |
### 変数
-| 変数 | 説明 |
-| --------- | -------------------------------------- |
-| output | The output of shell command in `shell` |
-| symbol | オプション `symbol` の値をミラーする |
-| style\* | オプション `style` の値をミラーする |
+| 変数 | 説明 |
+| --------- | ------------------------- |
+| output | `shell` におけるシェルコマンドの出力結果。 |
+| symbol | オプション `symbol` の値をミラーする |
+| style\* | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
-#### Custom command shell
+#### カスタムコマンドを実行するシェル
-`shell` accepts a non-empty list of strings, where:
+`shell` には、以下のように空でない文字列のリストを指定します:
-- The first string is the path to the shell to use to execute the command.
-- Other following arguments are passed to the shell.
+- 最初の文字列は、コマンドを実行するために使用するシェルへのパスです。
+- その他の文字列は引数としてシェルに渡されます。
-If unset, it will fallback to STARSHIP_SHELL and then to 'sh' on Linux, and 'cmd /C' on Windows.
+未設定の場合は、最初に STARSHIP_SHELL に対して、そして Linux では 'sh' に、Windowsでは 'cmd / C' に対してフォールバックが試みられます。
-The `command` will be passed in on stdin.
+`command` は stdin に渡されます。
-If `shell` is not given or only contains one element and Starship detects PowerShell will be used, the following arguments will automatically be added: `-NoProfile -Command -`. If `shell` is not given or only contains one element and Starship detects Cmd will be used, the following argument will automatically be added: `/C` and `stdin` will be set to `false`. If `shell` is not given or only contains one element and Starship detects Nushell will be used, the following arguments will automatically be added: `-c` and `stdin` will be set to `false`. This behavior can be avoided by explicitly passing arguments to the shell, e.g.
+`shell` が指定されていないか要素の数が1つでかつ Starship が PowerShell が使われると判定した場合、次の引数が自動的に付加されます: `-NoProfile -Command -`。 `shell` が指定されていないか要素の数が1つでかつ Starship が Cmd が使われると判定した場合、引数 `/C` が自動的に付加され、`stdin` が `false` に設定されます。 `shell` が指定されていないか要素の数が1つでかつ Starship が Nushell が使われると判定した場合、引数 `-c` が自動的に付加され、`stdin` が `false` に設定されます。 この動作は、シェルに明示的に引数を渡すことで回避できます。例:
```toml
shell = ['pwsh', '-Command', '-']
```
-::: warning Make sure your custom shell configuration exits gracefully
+::: warning 設定したカスタムシェルが正常終了することを再度ご確認ください
-If you set a custom command, make sure that the default Shell used by starship will properly execute the command with a graceful exit (via the `shell` option).
+カスタムコマンドを設定するときは、(`shell` オプションを通して指定される) Starship が使用する既定のシェルがコマンドを正しく実行し正しく終了することを確認してください。
-For example, PowerShell requires the `-Command` parameter to execute a one liner. Omitting this parameter might throw starship into a recursive loop where the shell might try to load a full profile environment with starship itself again and hence re-execute the custom command, getting into a never ending loop.
+たとえば、PowerShell では一行コマンドを実行するために `-Command` パラメータを指定する必要があります。 このパラメータを省略すると、呼び出されたシェルが初期化のために再帰的に Starship を呼び出し、その Starship が再びカスタムコマンドを実行することによって、無限ループになる可能性があります。
-Parameters similar to `-NoProfile` in PowerShell are recommended for other shells as well to avoid extra loading time of a custom profile on every starship invocation.
+PowerShell の `-NoProfile` に似たパラメータは、他のシェルでも推奨されます。これは、Starship の呼び出しごとにカスタムプロファイルの追加ロード時間が発生することを避けるためです。
-Automatic detection of shells and proper parameters addition are currently implemented, but it's possible that not all shells are covered. [Please open an issue](https://github.com/starship/starship/issues/new/choose) with shell details and starship configuration if you hit such scenario.
+現在、シェルと適切なパラメータの自動検出は実装されていますが、すべてのシェルがカバーされているとは限りません。 このような状況にお気づきの場合は、[イシューを開いて](https://github.com/starship/starship/issues/new/choose)シェルの詳細と Starship の設定をご報告ください。
:::
@@ -4522,19 +4631,19 @@ Automatic detection of shells and proper parameters addition are currently imple
# ~/.config/starship.toml
[custom.foo]
-command = 'echo foo' # shows output of command
-detect_files = ['foo'] # can specify filters but wildcards are not supported
+command = 'echo foo' # コマンドの出力を表示する
+detect_files = ['foo'] # フィルター。ワイルドカードは非対応
when = ''' test "$HOME" = "$PWD" '''
format = ' transcending [$output]($style)'
[custom.time]
command = 'time /T'
-detect_extensions = ['pst'] # filters *.pst files
+detect_extensions = ['pst'] # *.pst ファイルを選択
shell = ['pwsh.exe', '-NoProfile', '-Command', '-']
[custom.time-as-arg]
command = 'time /T'
-detect_extensions = ['pst'] # filters *.pst files
+detect_extensions = ['pst'] # *.pst ファイルを選択
shell = ['pwsh.exe', '-NoProfile', '-Command']
use_stdin = false
```
diff --git a/docs/ja-JP/faq/README.md b/docs/ja-JP/faq/README.md
index de81beb70..bb5291163 100644
--- a/docs/ja-JP/faq/README.md
+++ b/docs/ja-JP/faq/README.md
@@ -58,7 +58,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
## どうして`Executing command "..." timed out.`という警告が出てくるのでしょうか?
-Starship executes different commands to get information to display in the prompt, for example the version of a program or the current git status. To make sure starship doesn't hang while trying to execute these commands we set a time limit, if a command takes longer than this limit starship will stop the execution of the command and output the above warning, this is expected behaviour. This time limit is configurable using the [`command_timeout`key](../config/#prompt) so if you want you can increase the time limit. You can also follow the debugging steps below to see which command is being slow and see if you can optimise it. Finally you can set the `STARSHIP_LOG` env var to `error` to hide these warnings.
+Starship は、プロンプトに表示する情報 (例えば、プログラムのバージョンや現在の git ステータス) を取得するために、異なるコマンドを実行します。 これらのコマンドの実行中に Starship の応答がなくなるのを防ぐためにタイムリミットが設定されています。コマンド実行にタイムリミットよりも長い時間がかかった時、コマンド実行がキャンセルされ上記の警告が表示されます。これは意図的な動作です。 タイムリミットは [`command_timeout`key](../config/#prompt) を用いて変更可能ですので、お望みであればタイムリミットを長くできます。 更に以下のデバッグ手順によって、どのコマンドの実行に時間がかかっているかや、それを高速化できるかについて確認できます。 最終手段として、環境変数 `STARSHIP_LOG` に `error` を設定することでこれらの警告を非表示にできます。
## よくわからない記号を見つけました。これはどういった意味ですか?
@@ -66,21 +66,21 @@ Starship executes different commands to get information to display in the prompt
## Starshipがなにか想定外の挙動をしているとき、どのようにデバッグすればよいですか?
-You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
+環境変数 `STARSHIP_LOG` を使用してデバッグログを有効にできます。 特定のモジュールをデバグしようとしているとき、デバッグログが過度に冗長になることがありますが、その場合は `module` コマンドが役立ちます。例えば、`rust` モジュールをデバグしようとしているとき、以下のコマンドを用いてこのモジュールからのログと出力を取得できます。
```sh
env STARSHIP_LOG=trace starship module rust
```
-If starship is being slow you can try using the `timings` command to see if there is a particular module or command that is to blame.
+Starship が遅い場合は、 `timings` コマンドを使って特定のモジュールまたはコマンドが悪さをしているか確認できます。
```sh
env STARSHIP_LOG=trace starship timings
```
-This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
+トレースログおよび、実行に 1 ミリ秒以上かかったか何か出力をした全てのモジュールの個別解析を出力します。
-Finally if you find a bug you can use the `bug-report` command to create a GitHub issue.
+バグを見つけた場合は、 `bug-report` コマンドを用いて GitHub の問題を作成できます。
```sh
starship bug-report
@@ -121,10 +121,10 @@ Starship をインストールスクリプトを使用してインストール
sh -c 'rm "$(command -v 'starship')"'
```
-## How do I install Starship without `sudo`?
+## `sudo` を使わずに Starship をインストールするにはどうすればいいですか?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+インストールシェルスクリプト (`https://starship.rs/install.sh`) はインストール先のディレクトリが現在のユーザによって書き込みできない時に限り `sudo` の使用を試みます。 既定のインストールディレクトリは、 `$BIN_DIR` 環境変数の値、または`$BIN_DIR` が設定されていない場合は `/usr/local/bin` です。 インストールディレクトリを現在のユーザが書き込みできるディレクトリに設定すれば、 `sudo` なしで Starship をインストールできます。 例えば `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` は、インストールスクリプトにコマンドラインオプション `-b` を指定してインストールディレクトリを `~/.local/bin` に設定します。
-For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+Starship の非対話形式でのインストールでは、確認をスキップするために `-y` オプションを追加することを忘れないでください。 対応しているオプションの一覧についてはインストールスクリプトのソースをご確認ください。
-When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
+パッケージマネージャーを使う時は、 `sudo` を使ったまたは使わないインストールに関して、パッケージマネージャーのドキュメントを参照してください。
diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md
index 1d3b668b9..42e7aa1cc 100644
--- a/docs/ja-JP/guide/README.md
+++ b/docs/ja-JP/guide/README.md
@@ -35,7 +35,7 @@
@@ -161,7 +161,7 @@
align="right"
/>
-**シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!**
+**最小限の、非常に高速で、無限にカスタマイズ可能なシェル用のプロンプトです!**
- **高速:** _本当に_ 高速です! 🚀
- **カスタマイズ可能:** プロンプトのあらゆる側面を構成します。
@@ -431,6 +431,8 @@ Starshipのさらなるカスタマイズを目指すなら以下を参考にし
[スポンサーになることで](https://github.com/sponsors/starship)このプロジェクトをサポートできます。 名前やロゴがあなたのホームページへのリンクとともに表示されます。
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/ja-JP/installing/README.md b/docs/ja-JP/installing/README.md
index 357f8a659..1701bed42 100644
--- a/docs/ja-JP/installing/README.md
+++ b/docs/ja-JP/installing/README.md
@@ -5,7 +5,7 @@ Starship をインストールするには、以下の2つのことを行う必
1. ** starship ** のバイナリをコンピューター上に取得する
1. Init スクリプトを修正することで、Starship バイナリをプロンプトとして使用するようシェルに指示する
-For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. しかし、より特殊なプラットフォームでは、別の操作が必要になることがあります。
+ほとんどの場合、[メインページ](../guide/#🚀-installation)の指示に従えば問題なく動作します。 しかし、より特殊なプラットフォームでは、別の操作が必要になることがあります。
プラットフォームは無数に存在するため、メインの README.md ファイルには書ききれません。そこで、このページでは、コミュニティにより提供された他のプラットフォーム向けのインストール方法について紹介します。 あなたが使用しているプラットフォームが見当たりませんか? その場合は是非、見つけた方法をここに追加してください。
@@ -45,7 +45,7 @@ Funtoo Linuxでは、Portageの[core-kit](https://github.com/funtoo/core-kit/tre
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### バイナリの取得
diff --git a/docs/ja-JP/migrating-to-0.45.0/README.md b/docs/ja-JP/migrating-to-0.45.0/README.md
index 48cc17f67..a73efb3c8 100644
--- a/docs/ja-JP/migrating-to-0.45.0/README.md
+++ b/docs/ja-JP/migrating-to-0.45.0/README.md
@@ -1,4 +1,4 @@
-# v0.45への移行
+# v0.45.0への移行
Starship v0.45.0は、v1.0.0の準備として互換性の無い変更を含むリリースになります。 私たちはより多くのカスタマイズを可能にするために、プロンプトでの設定方法にいくつかの大きな変更を加えました。
diff --git a/docs/ja-JP/presets/README.md b/docs/ja-JP/presets/README.md
index 0cbdece95..f34cda6b5 100644
--- a/docs/ja-JP/presets/README.md
+++ b/docs/ja-JP/presets/README.md
@@ -12,15 +12,15 @@
## [No Nerd Fonts](./no-nerd-font.md)
-This preset changes the symbols for several modules so that no Nerd Font symbols are used anywhere in the prompt.
+このプリセットは一部のモジュールで使われるシンボルを変更して、Nerd Font シンボルをどこにも使わないようにします。
::: tip
-This preset will become the default preset [in a future release of starship](https://github.com/starship/starship/pull/3544).
+このプリセットは [Starship の将来のリリース](https://github.com/starship/starship/pull/3544) でデフォルトのプリセットになります。
:::
-[Click to view No Nerd Font preset](./no-nerd-font)
+[No Nerd Font プリセットを表示するにはクリックしてください。](./no-nerd-font)
## [Bracketed Segments](./bracketed-segments.md)
@@ -42,7 +42,7 @@ This preset will become the default preset [in a future release of starship](htt
## [No Empty Icons](./no-empty-icons.md)
-This preset does not show icons if the toolset is not found.
+ツールセットが見つからない場合、このプリセットはアイコンを表示しません。
[](./no-empty-icons.md)
@@ -62,16 +62,16 @@ This preset does not show icons if the toolset is not found.
このプリセットは[tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme)を参考にしています。
-[](./tokyo-night)
+[](./tokyo-night)
## [Gruvbox Rainbow](./gruvbox-rainbow.md)
-This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+このプリセットは [Pastel Powerline](./pastel-powerline.md) と [Tokyo Night](./tokyo-night.md) に強くインスパイアされています。
-[](./gruvbox-rainbow)
+[](./gruvbox-rainbow)
## [Jetpack](./jetpack.md)
-This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+[geometry](https://github.com/geometry-zsh/geometry) と [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) のプロンプトにインスパイアされた擬似ミニマリストプリセットです。
-[](./jetpack)
+[](./jetpack)
diff --git a/docs/ja-JP/presets/gruvbox-rainbow.md b/docs/ja-JP/presets/gruvbox-rainbow.md
index f44520441..6fd3ed0d7 100644
--- a/docs/ja-JP/presets/gruvbox-rainbow.md
+++ b/docs/ja-JP/presets/gruvbox-rainbow.md
@@ -1,12 +1,12 @@
[プリセット一覧に戻る](./#gruvbox-rainbow)
-# Gruvbox Rainbow Preset
+# Gruvbox Rainbow プリセット
-This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+このプリセットは [Pastel Powerline](./pastel-powerline.md) と [Tokyo Night](./tokyo-night.md) に強くインスパイアされています。
-
+
-### 必要なもの
+### 前提条件
- [Nerd Font](https://www.nerdfonts.com/)のインストールとターミナルでの有効化
diff --git a/docs/ja-JP/presets/jetpack.md b/docs/ja-JP/presets/jetpack.md
index 017210915..2263c6f69 100644
--- a/docs/ja-JP/presets/jetpack.md
+++ b/docs/ja-JP/presets/jetpack.md
@@ -1,17 +1,17 @@
[プリセット一覧に戻る](./#jetpack)
-# Jetpack Preset
+# Jetpack プリセット
-This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+[geometry](https://github.com/geometry-zsh/geometry) と [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) のプロンプトにインスパイアされた擬似ミニマリストプリセットです。
-> Jetpack uses the terminal's color theme.
+> Jetpack はターミナルのカラーテーマを使用します。
-
+
-### Prerequisite
+### 前提条件
-- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
-- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+- [`右プロンプト`](https://starship.rs/advanced-config/#enable-right-prompt) に対応したシェルが必要です。
+- [Jetbrain Mono](https://www.jetbrains.com/lp/mono/) が推奨されます。
### 設定
diff --git a/docs/ja-JP/presets/no-empty-icons.md b/docs/ja-JP/presets/no-empty-icons.md
index c86784298..99941c461 100644
--- a/docs/ja-JP/presets/no-empty-icons.md
+++ b/docs/ja-JP/presets/no-empty-icons.md
@@ -2,7 +2,7 @@
# No Empty Icons プリセット
-If toolset files are identified the toolset icon is displayed. If the toolset is not found to determine its version number, it is not displayed. This preset changes the behavior to display the icon only if the toolset information can be determined.
+ツールセットファイルが特定できたときに、ツールセットアイコンを表示します。 ツールセットが見つかってバージョン番号を特定できない限りは、アイコンは表示されません。 このプリセットは、ツールセット情報が特定できる場合にのみアイコンを表示するように動作を変更します。

diff --git a/docs/ja-JP/presets/no-nerd-font.md b/docs/ja-JP/presets/no-nerd-font.md
index a8bf13e68..d7d3af6ce 100644
--- a/docs/ja-JP/presets/no-nerd-font.md
+++ b/docs/ja-JP/presets/no-nerd-font.md
@@ -2,11 +2,11 @@
# No Nerd Fonts プリセット
-This preset restricts the use of symbols to those from emoji and powerline sets.
+このプリセットは使用するシンボルを絵文字や powerline のセットに制限します。
-This means that even without a Nerd Font installed, you should be able to view all module symbols.
+つまり Nerd Font をインストールしなくても、すべてのモジュールのシンボルを正しく表示できます。
-This preset will become the default preset in a future release of starship.
+このプリセットは、将来の Starship のリリースで既定のプリセットになります。
### 設定
diff --git a/docs/ko-KR/README.md b/docs/ko-KR/README.md
index 3654f0ba8..de776f284 100644
--- a/docs/ko-KR/README.md
+++ b/docs/ko-KR/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: 크로스-셸 프롬프트"
description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다! 필요한 정보를 깔끔하고 간략하게 표시합니다. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, 및 PowerShell에 빠르게 설치할 수 있습니다.
---
+
+
diff --git a/docs/ko-KR/advanced-config/README.md b/docs/ko-KR/advanced-config/README.md
index 8cf7fbeb6..3e8e26a88 100644
--- a/docs/ko-KR/advanced-config/README.md
+++ b/docs/ko-KR/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md
index 9f840a7dd..f13ab97be 100644
--- a/docs/ko-KR/config/README.md
+++ b/docs/ko-KR/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `기호` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `기호` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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` |
+| `기호` | `'⭐ '` | A format string representing the symbol of Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | 예시 | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 기호 | | 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
+
+### 예시
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `기호` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | 예시 | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| 기호 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### 예시
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `기호` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | 예시 | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 기호 | | 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
+
+### 예시
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/ko-KR/faq/README.md b/docs/ko-KR/faq/README.md
index e1ee2aa37..b2c04c796 100644
--- a/docs/ko-KR/faq/README.md
+++ b/docs/ko-KR/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/ko-KR/guide/README.md b/docs/ko-KR/guide/README.md
index 90da03cd6..cee1ccd23 100644
--- a/docs/ko-KR/guide/README.md
+++ b/docs/ko-KR/guide/README.md
@@ -431,6 +431,8 @@ Starship 을 만드는 데에 영감이 되었던 이전 작업들도 살펴보
이 [프로젝트를 후원](https://github.com/sponsors/starship)하여 프로젝트를 지원해 주세요. 여러분의 웹사이트로 이동하는 링크가 걸린 이름 혹은 로고가 여기에 걸립니다.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/ko-KR/installing/README.md b/docs/ko-KR/installing/README.md
index 5b8fca96c..6b503ea5d 100644
--- a/docs/ko-KR/installing/README.md
+++ b/docs/ko-KR/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/nl-NL/README.md b/docs/nl-NL/README.md
index 42829c8a0..2432d068d 100644
--- a/docs/nl-NL/README.md
+++ b/docs/nl-NL/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
---
+
+
diff --git a/docs/nl-NL/advanced-config/README.md b/docs/nl-NL/advanced-config/README.md
index d110b7a42..5b15045af 100644
--- a/docs/nl-NL/advanced-config/README.md
+++ b/docs/nl-NL/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md
index 54df074d1..ae2306a56 100644
--- a/docs/nl-NL/config/README.md
+++ b/docs/nl-NL/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/nl-NL/faq/README.md b/docs/nl-NL/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/nl-NL/faq/README.md
+++ b/docs/nl-NL/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/nl-NL/guide/README.md b/docs/nl-NL/guide/README.md
index 4f92b22ae..a4ebad35d 100644
--- a/docs/nl-NL/guide/README.md
+++ b/docs/nl-NL/guide/README.md
@@ -431,6 +431,8 @@ Please check out these previous works that helped inspire the creation of starsh
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/nl-NL/installing/README.md b/docs/nl-NL/installing/README.md
index d2bc69f5e..17c789bf9 100644
--- a/docs/nl-NL/installing/README.md
+++ b/docs/nl-NL/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/no-NO/README.md b/docs/no-NO/README.md
index 6f82d6a90..cfe93a616 100644
--- a/docs/no-NO/README.md
+++ b/docs/no-NO/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
---
+
+
diff --git a/docs/no-NO/advanced-config/README.md b/docs/no-NO/advanced-config/README.md
index d110b7a42..5b15045af 100644
--- a/docs/no-NO/advanced-config/README.md
+++ b/docs/no-NO/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/no-NO/config/README.md b/docs/no-NO/config/README.md
index 54df074d1..ae2306a56 100644
--- a/docs/no-NO/config/README.md
+++ b/docs/no-NO/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/no-NO/faq/README.md b/docs/no-NO/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/no-NO/faq/README.md
+++ b/docs/no-NO/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/no-NO/guide/README.md b/docs/no-NO/guide/README.md
index 9d6805706..d75e67c0c 100644
--- a/docs/no-NO/guide/README.md
+++ b/docs/no-NO/guide/README.md
@@ -431,6 +431,8 @@ Please check out these previous works that helped inspire the creation of starsh
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/no-NO/installing/README.md b/docs/no-NO/installing/README.md
index b5eaa6c4f..016edc4a9 100644
--- a/docs/no-NO/installing/README.md
+++ b/docs/no-NO/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/pl-PL/README.md b/docs/pl-PL/README.md
index 828d2b1d8..1f7b4e7cc 100644
--- a/docs/pl-PL/README.md
+++ b/docs/pl-PL/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Wiersz poleceń dla dowolnej powłoki"
description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz poleceń dla każdej powłoki! Pokazuje informacje których potrzebujesz, pozostając elegancki i minimalny. Szybka instalacja dostępna dla powłok Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd i PowerShell.
---
+
+
diff --git a/docs/pl-PL/advanced-config/README.md b/docs/pl-PL/advanced-config/README.md
index 60c57f440..e71c39876 100644
--- a/docs/pl-PL/advanced-config/README.md
+++ b/docs/pl-PL/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md
index cd0f65320..4d3f2152a 100644
--- a/docs/pl-PL/config/README.md
+++ b/docs/pl-PL/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Zmienne | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Zmienne | Example | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Zmienne | Example | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/pl-PL/faq/README.md b/docs/pl-PL/faq/README.md
index 5b3bc23e1..63f32f751 100644
--- a/docs/pl-PL/faq/README.md
+++ b/docs/pl-PL/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/pl-PL/guide/README.md b/docs/pl-PL/guide/README.md
index 0d95f87bd..49c8562ac 100644
--- a/docs/pl-PL/guide/README.md
+++ b/docs/pl-PL/guide/README.md
@@ -431,6 +431,8 @@ Zapoznaj się z wcześniejszymi projektami, które zainspirowały nas do stworze
Wspomóż ten projekt [stając się sponsorem](https://github.com/sponsors/starship). Twoja nazwa bądź logo pojawi się tutaj wraz z linkiem do Twojej witryny.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/pl-PL/installing/README.md b/docs/pl-PL/installing/README.md
index fb70353d7..0f3cd0163 100644
--- a/docs/pl-PL/installing/README.md
+++ b/docs/pl-PL/installing/README.md
@@ -45,7 +45,7 @@ Na Funtoo Linux, starship może być zainstalowany przez Portage z [core-kit](ht
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/pt-BR/README.md b/docs/pt-BR/README.md
index 20ee29d6b..33270599c 100644
--- a/docs/pt-BR/README.md
+++ b/docs/pt-BR/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd e PowerShell.
---
+
+
diff --git a/docs/pt-BR/advanced-config/README.md b/docs/pt-BR/advanced-config/README.md
index f87995dd4..de710ca6f 100644
--- a/docs/pt-BR/advanced-config/README.md
+++ b/docs/pt-BR/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. Isso é útil em casos onde nem sempre todas as informações do prompt são necessárias. Para habilitar isso, coloque em `~/.bashrc` `bleopt prompt_ps1_transient=`:
-O \ aqui é uma lista separada por dois pontos de `always`, `same-dir` e `trim`. Quando `prompt_ps1_final` está vazio e esta opção tem um valor não-vazio, o prompt especificado pelo `PS1` é apagado ao sair da linha de comando atual. Se o valor contém um campo `trim`, apenas a última linha de multilinha `PS1` é preservada e as outras linhas são apagadas. Caso contrário, a linha de comando será redesenhada como se `PS1=` fosse especificado. Quando um campo `same-dir` está contido no valor e o diretório de trabalho atual difere do diretório final da linha de comando anterior, esta opção `prompt_ps1_transient` é ignorada.
+O \ aqui é uma lista separada por dois pontos de `always`, `same-dir` e `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Caso contrário, a linha de comando será redesenhada como se `PS1=` fosse especificado. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Faça as seguintes alterações no seu `~/.bashrc` para personalizar o que é exibido à esquerda e à direita:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- Para personalizar o que o lado esquerdo do valor de entrada é substituído, configure a opção `prompt_ps1_final` Ble.sh. Por exemplo, para exibir o caractere da `Starship` aqui, você faria
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- Para personalizar o que o lado direito de entrada é substituído, configure a opção `prompt_rps1_final` Ble.sh. Por exemplo, para exibir o momento em que o último comando foi iniciado, você faria
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Comandos personalizados de pré-prompt e pré-execução no Cmd
@@ -266,7 +266,7 @@ Nota: os prompts de continuação estão disponíveis apenas nos seguintes shell
```toml
# ~/.config/starship.toml
-# Um prompt de continuação que exibe duas setas preenchidas
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Se várias cores forem especificadas para primeiro plano/plano de fundo, a últi
Nem todas os estilos de string serão exibidos corretamente em todos terminais. Em particular, existem os seguintes erros conhecidos:
-- Muitos terminais desabilitam por padrão o suporte ao `blink`
+- Muitos terminais desabilitam por padrão o suporte ao `blink`.
- `hidden` não é [ suportado no iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` não é suportado por padrão no aplicativo de terminal do macOS
+- `strikethrough` não é suportado por padrão no aplicativo de terminal do macOS.
diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md
index d5ef651e5..e827b55d2 100644
--- a/docs/pt-BR/config/README.md
+++ b/docs/pt-BR/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ O módulo `bun` mostra a versão atualmente instalada do [bun](https://bun.sh) r
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | Uma string de formato que representa o símbolo do Bun. |
+| `symbol` | `'🥟 '` | Uma string de formato que representa o símbolo do Bun. |
| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
@@ -1966,6 +1968,44 @@ Use o executável do Windows Starship em caminhos do Windows em WSL
windows_starship = '/mnt/c/Users/nomedousuario/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
+| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | O formato da string que representa o simbolo do Go. |
+| `detect_extensions` | `['gleam']` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `['gleam.toml']` | Quais nomes de arquivos devem ativar este módulo. |
+| `style` | `'bold #FFAFF3'` | O estilo do módulo. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
+
+*: Esta variável só pode ser usada como parte de uma string de estilo
+
+### Exemplo
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
O módulo `golang` exibe a versão instalada atual do [Go](https://golang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
@@ -2444,7 +2484,7 @@ Exibe o nome atual do [Kubernetes context](https://kubernetes.io/docs/concepts/c
Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para `false` no seu arquivo de configuração.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Desabilita o módulo `kubernetes`. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | O estilo do módulo. |
+| `format` | `'[$symbol$name]($style)'` | O formato do módulo. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| --------- | ----------- | --------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
+
+### Exemplo
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
O módulo `nim` exibe a versão atual instalada do [Nim](https://nim-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
@@ -2943,6 +3013,43 @@ O módulo `ocaml` exibe a versão atual instalada do [OCaml](https://ocaml.org/)
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | ------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | O símbolo usado antes de exibir a versão do Zig. |
+| `style` | `'bold bright-blue'` | O estilo do módulo. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| --------- | ------------- | --------------------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
+
+*: Esta variável só pode ser usada como parte de uma string de estilo
+
+### Exemplo
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ Conexões SSH são detectadas checando as variáveis de ambiente `SSH_CONNECTION
| `format` | `'[$user]($style) in '` | O formato do módulo. |
| `show_always` | `false` | Sempre exibe o módulo `username`. |
| `disabled` | `false` | Desabilita o módulo `username`. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variáveis
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/pt-BR/faq/README.md b/docs/pt-BR/faq/README.md
index c5ee4ec5a..4407fabb4 100644
--- a/docs/pt-BR/faq/README.md
+++ b/docs/pt-BR/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/pt-BR/guide/README.md b/docs/pt-BR/guide/README.md
index f28401c8a..ca89927d9 100644
--- a/docs/pt-BR/guide/README.md
+++ b/docs/pt-BR/guide/README.md
@@ -431,6 +431,8 @@ Por favor, confira esses trabalhos anteriores que ajudaram a inspirar a criaçã
Apoie este projeto [tornando-se um patrocinador](https://github.com/sponsors/starship). O seu nome ou logotipo aparecerá aqui com um link para o seu site.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/pt-BR/installing/README.md b/docs/pt-BR/installing/README.md
index 9380f9a68..b288853be 100644
--- a/docs/pt-BR/installing/README.md
+++ b/docs/pt-BR/installing/README.md
@@ -45,7 +45,7 @@ No Funtoo Linux, o starship pode ser instalado a partir do [core-kit](https://gi
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Obtendo o Binário
diff --git a/docs/pt-PT/README.md b/docs/pt-PT/README.md
index baeca74ad..a8b2141df 100644
--- a/docs/pt-PT/README.md
+++ b/docs/pt-PT/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
---
+
+
diff --git a/docs/pt-PT/advanced-config/README.md b/docs/pt-PT/advanced-config/README.md
index d110b7a42..5b15045af 100644
--- a/docs/pt-PT/advanced-config/README.md
+++ b/docs/pt-PT/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md
index 54df074d1..ae2306a56 100644
--- a/docs/pt-PT/config/README.md
+++ b/docs/pt-PT/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/pt-PT/faq/README.md b/docs/pt-PT/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/pt-PT/faq/README.md
+++ b/docs/pt-PT/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/pt-PT/guide/README.md b/docs/pt-PT/guide/README.md
index 29fbbb3c7..3485191d5 100644
--- a/docs/pt-PT/guide/README.md
+++ b/docs/pt-PT/guide/README.md
@@ -431,6 +431,8 @@ Please check out these previous works that helped inspire the creation of starsh
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/pt-PT/installing/README.md b/docs/pt-PT/installing/README.md
index 9b835f5ab..4218a1420 100644
--- a/docs/pt-PT/installing/README.md
+++ b/docs/pt-PT/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/ru-RU/README.md b/docs/ru-RU/README.md
index 5f18a1f6c..b5fc82d19 100644
--- a/docs/ru-RU/README.md
+++ b/docs/ru-RU/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Быстрая установка доступна для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, и PowerShell.
---
+
+
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index 44b8a7c12..aaecac627 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ continuation_prompt = '▶▶ '
Не все строки стиля будут корректно отображаться в терминале. В частности, существуют следующие известные ошибки:
-- Во многих терминалах по умолчанию отключена поддержка `blink`
+- Во многих терминалах по умолчанию отключена поддержка `blink`.
- `hidden` [не поддерживается в iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` по умолчанию не поддерживается в macOS Terminal.app
+- `strikethrough` по умолчанию не поддерживается в macOS Terminal.app.
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 57c27b0d6..6d8c642b6 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | A format string representing the symbol of Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | Стиль модуля. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ---------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
+
+*: Эта переменная может использоваться только в качестве части строки style
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Отключает модуль `kubernetes`. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Стиль модуля. |
+| `format` | `'[$symbol$name]($style)'` | Формат модуля. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ---------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
+
+### Пример
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | Стиль модуля. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ---------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
+
+*: Эта переменная может использоваться только в качестве части строки style
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | Формат модуля. |
| `show_always` | `false` | Всегда показывать модуль `username`. |
| `disabled` | `false` | Отключает модуль `username`. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Переменные
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/ru-RU/faq/README.md b/docs/ru-RU/faq/README.md
index d2c88a58c..17f3aa462 100644
--- a/docs/ru-RU/faq/README.md
+++ b/docs/ru-RU/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## Как Starship без `sudo`?
-Скрипт установки (`https://starship.rs/install. h`) использует `sudo` только если директория установки недоступна для записи текущим пользователем. Директория установки по умолчанию это значение переменной окружения `$BIN_DIR` или `/usr/local/bin`, если `$BIN_DIR` не установлен. Если вместо этого выбрать директорию установки, которая доступна для записи пользователем, вы можете установить starship без `sudo`. Например, в `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` флаг `-b` установочного скрипта используется, чтобы задать директорию установки на `~/.local/bin`.
+Скрипт установки (`https://starship.rs/install. h`) использует `sudo` только если директория установки недоступна для записи текущим пользователем. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. Если вместо этого выбрать директорию установки, которая доступна для записи пользователем, вы можете установить starship без `sudo`. Например, в `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` флаг `-b` установочного скрипта используется, чтобы задать директорию установки на `~/.local/bin`.
Для неинтерактивной установки Starship не забудьте добавить опцию `-y` чтобы пропустить подтверждение. Проверьте исходник установочного скрипта, чтобы получить список всех поддерживаемых параметров установки.
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index dbdf5b2d1..201f4baa2 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -431,6 +431,8 @@ eval "$(starship init zsh)"
Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/ru-RU/installing/README.md b/docs/ru-RU/installing/README.md
index 5fbdb6dde..bdc83b557 100644
--- a/docs/ru-RU/installing/README.md
+++ b/docs/ru-RU/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Getting the Binary
diff --git a/docs/tr-TR/README.md b/docs/tr-TR/README.md
index f7dac204a..656ad4647 100644
--- a/docs/tr-TR/README.md
+++ b/docs/tr-TR/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship, her prompt için minimal, son derece hızlı ve son derece özelleştirilebilir bir shelldir! Şık ve minimal kalırken ihtiyacınız olan bilgileri gösterir. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd ve PowerShell için hızlı kurulum mevcuttur.
---
+
+
diff --git a/docs/tr-TR/advanced-config/README.md b/docs/tr-TR/advanced-config/README.md
index 8772019a7..18e601988 100644
--- a/docs/tr-TR/advanced-config/README.md
+++ b/docs/tr-TR/advanced-config/README.md
@@ -85,20 +85,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/tr-TR/config/README.md b/docs/tr-TR/config/README.md
index 5bead130c..1605e846d 100644
--- a/docs/tr-TR/config/README.md
+++ b/docs/tr-TR/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `stil` | `'bold #FFAFF3'` | The style for the module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `stil` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `stil` | `'bold bright-blue'` | The style for the module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Variables
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/tr-TR/faq/README.md b/docs/tr-TR/faq/README.md
index f9c7529bb..c9975ce61 100644
--- a/docs/tr-TR/faq/README.md
+++ b/docs/tr-TR/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/tr-TR/guide/README.md b/docs/tr-TR/guide/README.md
index 9b5ffd192..5dda5c22d 100644
--- a/docs/tr-TR/guide/README.md
+++ b/docs/tr-TR/guide/README.md
@@ -431,6 +431,8 @@ Lütfen starship'in oluşmasında ilham kaynağı olan çalışmalara da göz at
Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/tr-TR/installing/README.md b/docs/tr-TR/installing/README.md
index 7164823a0..ccf33024b 100644
--- a/docs/tr-TR/installing/README.md
+++ b/docs/tr-TR/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Binary Alma
diff --git a/docs/uk-UA/README.md b/docs/uk-UA/README.md
index e85fc1f0b..e9ec23ee1 100644
--- a/docs/uk-UA/README.md
+++ b/docs/uk-UA/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки! Показує потрібну інформацію залишаючись блискучим та мінімальним. Швидке встановлення доступне для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd і PowerShell.
---
+
+
diff --git a/docs/uk-UA/advanced-config/README.md b/docs/uk-UA/advanced-config/README.md
index 5e4158ff6..9a9fdd4d8 100644
--- a/docs/uk-UA/advanced-config/README.md
+++ b/docs/uk-UA/advanced-config/README.md
@@ -82,22 +82,22 @@ enable_transience
## TransientPrompt та TransientRightPrompt в Bash
-The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. Це корисно у випадках, коли вся інформація з командного рядка не потрібна. Для увімкнення цього додайте до `~/.bashrc` рядок `bleopt prompt_ps1_transient=`:
+[Ble.sh](https://github.com/akinomyoga/ble.sh) v0.4 або вище дозволяє замінювати попередньо надрукований командний рядок іншим рядком. Це корисно у випадках, коли вся інформація з командного рядка не потрібна. Для увімкнення цього додайте до `~/.bashrc` рядок `bleopt prompt_ps1_transient=`:
-\ тут – це розділений двокрапкою список `always`, `same-dir` та `trim`. Якщо `prompt_ps1_final` порожній і цей параметр має не пусте значення, командний рядок, вказаний у `PS1` буде стертий при виході з поточного командного рядка. Якщо значення містить поле `trim`, тільки останній рядок багаторядкового `PS1` буде збережений, а інші вилучені. В іншому випадку командний рядок буде встановлено перестворено, якщо вказано `PS1=`. Коли поле `same-dir` міститься у значені та поточна тека є відмінною від останньої теки у попередньому виводі командного рядка, параметр `prompt_ps1_transient` не враховується.
+\ тут – це розділений двокрапкою список `always`, `same-dir` та `trim`. Якщо `prompt_ps1_final` порожній і параметр `prompt_ps1_transient` має не пусте значення \, командний рядок, вказаний у `PS1` буде стертий при виході з поточного командного рядка. Якщо \ містить поле `trim`, тільки останній рядок багаторядкового `PS1` буде збережений, а інші вилучені. В іншому випадку командний рядок буде встановлено перестворено, якщо вказано `PS1=`. Коли поле `same-dir` міститься у \ та поточна тека є відмінною від останньої теки у попередньому виводі командного рядка, параметр `prompt_ps1_transient` не враховується.
-Зробіть наступні зміни у `~/.bashrc`, щоб налаштувати, що показується ліворуч і праворуч:
+Зробіть наступні зміни у `~/.blerc` (або у `~/.config/blesh/init.sh`), щоб налаштувати, що показується ліворуч і праворуч:
- Для налаштування того, чим замінюється ліва частина вводу, налаштуйте параметр `prompt_ps1_final`. Наприклад, щоб показати тут модуль Starship `character`, вам потрібно
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- Для налаштування того, чим замінюється права частина вводу, налаштуйте параметр `prompt_rps1_final`. Наприклад, щоб показати час, коли була запущена остання команда, ви можете зробити
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Власні команди pre-prompt та pre-execution в Cmd
@@ -227,7 +227,7 @@ Invoke-Expression (&starship init powershell)
`right_format` наразі підтримується для таких оболонок: elvish, fish, zsh, xonsh, cmd, nushell, bash.
-Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework v0.4 or higher should be installed in order to use right prompt in bash.
+Примітка: фреймворк [Ble.sh](https://github.com/akinomyoga/ble.sh) v0.4 або вище має бути встановлений для того, щоб використовувати розташування командного рядка в bash праворуч.
### Приклад
@@ -301,6 +301,6 @@ continuation_prompt = '▶▶ '
Не кожен рядок стилю буде правильно показуватись у кожному терміналі. Зокрема, існують такі відомі примхи:
-- Багато терміналів стандартно вмикають підтримку `blink`
+- Багато терміналів стандартно вмикають підтримку `blink`.
- `hidden` [не підтримується в iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` не підтримується стандартно в macOS Terminal.app
+- `strikethrough` не підтримується стандартно в macOS Terminal.app.
diff --git a/docs/uk-UA/config/README.md b/docs/uk-UA/config/README.md
index 9b7bdee0a..e53ef3290 100644
--- a/docs/uk-UA/config/README.md
+++ b/docs/uk-UA/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ symbol = '🦬 '
| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
-| `symbol` | `'🍞 '` | Формат рядка, що представляє символ Bun. |
+| `symbol` | `'🥟 '` | Формат рядка, що представляє символ Bun. |
| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
@@ -620,7 +622,7 @@ symbol = '🦬 '
### Приклади
-#### Customize the format
+#### Налаштуйте формат
```toml
# ~/.config/starship.toml
@@ -629,9 +631,9 @@ symbol = '🦬 '
format = 'via [🍔 $version](bold green) '
```
-#### Replace Node.js
+#### Замінити Node.js
-You can override the `detect_files` property of [the nodejs module](#nodejs) in your config so as to only show the bun runtime:
+Ви можете перевизначити параметр `detect_files` властивості [модуля nodejs](#nodejs) у вашій конфігурації, щоб показати середу виконання bun:
```
[nodejs]
@@ -1966,6 +1968,44 @@ behind = '⇣${count}'
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+Модуль `gleam` показує поточну встановлену версію [Gleam](https://gleam.run/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
+
+- Поточна тека містить файл `gleam.toml`
+- Поточна тека містить файли з розширенням `.gleam`
+
+### Параметри
+
+| Параметр | Стандартно | Опис |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
+| `symbol` | `'⭐ '` | Формат рядка, що представляє символ Go. |
+| `detect_extensions` | `['gleam']` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `['gleam.toml']` | Які імена файлів мають запускати цей модуль. |
+| `style` | `'bold #FFAFF3'` | Стиль модуля. |
+| `disabled` | `false` | Вимикає модуль `gleam`. |
+
+### Змінні
+
+| Змінна | Приклад | Опис |
+| --------- | -------- | ---------------------------------------- |
+| version | `v1.0.0` | Версія `gleam` |
+| symbol | | Віддзеркалює значення параметра `symbol` |
+| style\* | | Віддзеркалює значення параметра `style` |
+
+*: Ця змінна може бути використана лише як частина стилю рядка
+
+### Приклад
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
Модуль `golang` показує поточну встановлену версію [Go](https://golang.org/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
@@ -2444,7 +2484,7 @@ kotlin_binary = 'kotlinc'
Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
-Коли модуль увімкнено, він завжди буде активним, якщо будь-який з параметрів `detect_extensions`, `detect_files` або `detect_folders` встановлені, модуль буде активним тільки в теках, що відповідають умовам.
+Коли модуль увімкнено, він завжди буде активним, якщо будь-який з параметрів `detect_env_vars`, `detect_extensions`, `detect_files` або `detect_folders` встановлені, модуль буде активним тільки в теках, що відповідають умовам.
:::
@@ -2466,6 +2506,7 @@ kotlin_binary = 'kotlinc'
| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | Які теки мають запускати цей модуль. |
+| `detect_env_vars` | `[]` | Які змінні середовища повинні запускати цей модуль |
| `contexts` | `[]` | Кастомізовані стилі та символи для конкретних контекстів. |
| `disabled` | `true` | Вимикає модуль `kubernetes`. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Параметри
+
+| Параметр | Стандартно | Опис |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Стиль модуля. |
+| `format` | `'[$symbol$name]($style)'` | Формат модуля. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Змінні
+
+| Змінна | Приклад | Опис |
+| --------- | ----------- | ---------------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Віддзеркалює значення параметра `symbol` |
+| style\* | | Віддзеркалює значення параметра `style` |
+
+### Приклад
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
Модуль `nim` показує поточну встановлену версію [Nim](https://nim-lang.org/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
@@ -2943,6 +3013,43 @@ format = 'via [🤖 $version](bold green) '
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+Модуль `odin` показує поточну встановлену версію [Odin](https://odin-lang.org/). Стандартно модуль буде показаний, якщо поточна тека містить файли `.odin`.
+
+### Параметри
+
+| Параметр | Стандартно | Опис |
+| ------------------- | ------------------------------------ | -------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `show_commit` | `false` | Показує коміт як частину версії. |
+| `symbol` | `'Ø '` | Символ, який знаходиться перед версією Zig. |
+| `style` | `'bold bright-blue'` | Стиль модуля. |
+| `disabled` | `false` | Вимикає модуль `odin`. |
+| `detect_extensions` | `['odin']` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
+| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
+
+### Змінні
+
+| Змінна | Приклад | Опис |
+| --------- | ------------- | ---------------------------------------- |
+| version | `dev-2024-03` | Версія `odin` |
+| symbol | | Віддзеркалює значення параметра `symbol` |
+| style\* | | Віддзеркалює значення параметра `style` |
+
+*: Ця змінна може бути використана лише як частина стилю рядка
+
+### Приклад
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
Модуль `opa` показує поточну встановлену версію OPA. Стандартно модуль буде показаний, якщо поточна тека містить файли `.rego`.
@@ -3448,12 +3555,12 @@ detect_extensions = []
## Quarto
-The `quarto` module shows the current installed version of Quarto used in a project.
+Модуль `quarto` показує поточну встановлену версію Quarto, що використовується в проєкті.
Типово, модуль показується, якщо виконується будь-яка з наступних умов:
-- The current directory contains a `_quarto.yml` file
-- The current directory contains any `*.qmd` file
+- Поточна тека містить файл `_quarto.yml`
+- Поточна тека містить файл `.qmd`
### Параметри
@@ -3461,18 +3568,18 @@ The `quarto` module shows the current installed version of Quarto used in a proj
| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
-| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
+| `symbol` | `'⨁ '` | Формат рядка, що представляє символ Quarto |
| `style` | `'bold #75AADB'` | Стиль модуля. |
| `detect_extensions` | `['.qmd']` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `['_quarto.yml']` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
-| `disabled` | `false` | Disables the `quarto` module. |
+| `disabled` | `false` | Вимикає модуль `quarto`. |
### Змінні
| Змінна | Приклад | Опис |
| --------- | --------- | ---------------------------------------- |
-| version | `1.4.549` | The version of `quarto` |
+| version | `1.4.549` | Версія `quarto` |
| symbol | | Віддзеркалює значення параметра `symbol` |
| style\* | | Віддзеркалює значення параметра `style` |
@@ -3623,12 +3730,12 @@ Starship отримує поточну версію Ruby командою `ruby
### Змінні
-| Змінна | Приклад | Опис |
-| --------- | -------- | ------------------------------------------- |
-| version | `v2.5.1` | Версія `ruby` |
-| symbol | | Віддзеркалює значення параметра `symbol` |
-| style\* | | Віддзеркалює значення параметра `style` |
-| gemset | `test` | Optional, gets the current RVM gemset name. |
+| Змінна | Приклад | Опис |
+| --------- | -------- | ---------------------------------------- |
+| version | `v2.5.1` | Версія `ruby` |
+| symbol | | Віддзеркалює значення параметра `symbol` |
+| style\* | | Віддзеркалює значення параметра `style` |
+| gemset | `test` | Опціонально, отримує назву RVM gemset. |
*: Ця змінна може бути використана лише як частина стилю рядка
@@ -4223,7 +4330,7 @@ time_range = '10:00:00-14:00:00'
- Поточний користувач не є таким же, як той, який увійшов до системи
- Користувач зараз підключений через SSH
- Змінна `show_always` встановлена в true
-- The array `detect_env_vars` contains at least the name of one environment variable, that is set
+- Масив `detect_env_vars` містить принаймні одну змінну середовища, яку було встановлено
::: tip
@@ -4241,6 +4348,7 @@ time_range = '10:00:00-14:00:00'
| `format` | `'[$user]($style) in '` | Формат модуля. |
| `show_always` | `false` | Завжди показувати модуль `username`. |
| `disabled` | `false` | Вимикає модуль `username`. |
+| `aliases` | `{}` | Переводить системні імена користувачів у щось інше |
### Змінні
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Приховувати hostname для віддалених сеансів tmux
diff --git a/docs/uk-UA/faq/README.md b/docs/uk-UA/faq/README.md
index 87a18233a..15917417b 100644
--- a/docs/uk-UA/faq/README.md
+++ b/docs/uk-UA/faq/README.md
@@ -72,7 +72,7 @@ Starship виконує різні команди, щоб отримати ін
env STARSHIP_LOG=trace starship module rust
```
-If starship is being slow you can try using the `timings` command to see if there is a particular module or command that is to blame.
+Якщо Starship працює повільно, ви можете спробувати використати команду `timings`, щоб побачити, чи є певний модуль або команда, які можна в цьому звинуватити.
```sh
env STARSHIP_LOG=trace starship timings
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## Як встановити Starship без `sudo`?
-Скрипт для встановлення оболонки (`https://starship.rs/install.sh`) намагається використовувати `sudo` лише в тому випадку, якщо поточний користувач не може писати в цільову теку. Стандартна тека для встановлення – є значенням змінної `$BIN_DIR` або це `/usr/local/bin`, якщо змінну `$BIN_DIR` не встановлено. Якщо замісць стандартної теки вказати теку, в яку ви можете писати, starship можна встановити без використання `sudo`. Наприклад, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` використовує параметр `-b` для встановлення в теку`~/.local/bin`.
+Скрипт для встановлення оболонки (`https://starship.rs/install.sh`) намагається використовувати `sudo` лише в тому випадку, якщо поточний користувач не може писати в цільову теку. Стандартна тека для встановлення — є значенням змінної `$BIN_DIR` або це `/usr/local/bin`, якщо змінну `$BIN_DIR` не встановлено. Якщо замісць стандартної теки вказати теку, в яку ви можете писати, starship можна встановити без використання `sudo`. Наприклад, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` використовує параметр `-b` для встановлення в теку`~/.local/bin`.
Якщо ви хочете виконати встановлення в повністю автоматичному режимі, не перериваючись на підтвердження в процесі, додайте параметр `-y`. Перегляньте сирці скрипту встановлення для ознайомлення зі всіма можливими параметрами.
diff --git a/docs/uk-UA/guide/README.md b/docs/uk-UA/guide/README.md
index 064539c7e..c213413c3 100644
--- a/docs/uk-UA/guide/README.md
+++ b/docs/uk-UA/guide/README.md
@@ -431,6 +431,8 @@ eval "$(starship init zsh)"
Підтримайте цей проєкт [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/uk-UA/installing/README.md b/docs/uk-UA/installing/README.md
index e8b7c7d85..8c5e88c3d 100644
--- a/docs/uk-UA/installing/README.md
+++ b/docs/uk-UA/installing/README.md
@@ -45,7 +45,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Завантаження бінарного файлу
diff --git a/docs/vi-VN/README.md b/docs/vi-VN/README.md
index 8a62c9def..cd40c8919 100644
--- a/docs/vi-VN/README.md
+++ b/docs/vi-VN/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biến mạnh mẽ cho bất kì shell nào! Hiển thị thông tin bạn cần, trong khi vẫn giữ cho đẹp và nhỏ gọn. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
---
+
+
diff --git a/docs/vi-VN/advanced-config/README.md b/docs/vi-VN/advanced-config/README.md
index f8680a089..dc8dac531 100644
--- a/docs/vi-VN/advanced-config/README.md
+++ b/docs/vi-VN/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ Nếu nhiều màu được quy định cho màu chữ/màu nền, cái cuối c
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md
index 1553c81c1..970aca8a3 100644
--- a/docs/vi-VN/config/README.md
+++ b/docs/vi-VN/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### Các tuỳ chọn
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'⭐ '` | Một format string đại diện cho biểu tượng của Go. |
+| `detect_extensions` | `['gleam']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `['gleam.toml']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
+| `style` | `'bold #FFAFF3'` | Kiểu cho module. |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### Các biến
+
+| Biến | Ví dụ | Mô tả |
+| --------- | -------- | -------------------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
+| style\* | | Giá trị ghi đè của `style` |
+
+*: Biến này có thể chỉ được sử dụng như một phần của style string
+
+### Ví dụ
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào nên kích hoạt các mô đun này. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Các tuỳ chọn
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | Kiểu cho module. |
+| `format` | `'[$symbol$name]($style)'` | Định dạng cho module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Các biến
+
+| Biến | Ví dụ | Mô tả |
+| --------- | ----------- | -------------------------------- |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
+| style\* | | Giá trị ghi đè của `style` |
+
+### Ví dụ
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### Các tuỳ chọn
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | Kiểu cho module. |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
+| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
+
+### Các biến
+
+| Biến | Ví dụ | Mô tả |
+| --------- | ------------- | -------------------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
+| style\* | | Giá trị ghi đè của `style` |
+
+*: Biến này có thể chỉ được sử dụng như một phần của style string
+
+### Ví dụ
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | Định dạng cho module. |
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
+| `aliases` | `{}` | Translate system usernames to something else |
### Các biến
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/vi-VN/faq/README.md b/docs/vi-VN/faq/README.md
index 03c3d4468..25ec9d227 100644
--- a/docs/vi-VN/faq/README.md
+++ b/docs/vi-VN/faq/README.md
@@ -1,4 +1,4 @@
-# Frequently Asked Questions
+# Câu hỏi thường gặp
## Cấu hình sử dụng trong demo GIF là gì?
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/vi-VN/guide/README.md b/docs/vi-VN/guide/README.md
index c965df409..51105f2b2 100644
--- a/docs/vi-VN/guide/README.md
+++ b/docs/vi-VN/guide/README.md
@@ -431,6 +431,8 @@ Xin hãy xem qua những công việc này trước đây, những thứ đã gi
Hỗ trợ project này bằng việc [trở thành nhà tài trợ](https://github.com/sponsors/starship). Tên hoặc logo của nhà tài trợ sẽ được hiển thị với một liên kết dẫn tới trang web của họ.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/vi-VN/installing/README.md b/docs/vi-VN/installing/README.md
index e7b26d435..cbd0ac7fc 100644
--- a/docs/vi-VN/installing/README.md
+++ b/docs/vi-VN/installing/README.md
@@ -45,7 +45,7 @@ On Funtoo Linux, starship can be installed from [core-kit](https://github.com/fu
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### Lấy tệp tin nhị phân
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md
index ec91c61a6..8355aa509 100644
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship:可用于各种 Shell 的提示符"
description: Starship是一款轻量、迅速、可客制化的高颜值终端! 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。
---
+
+
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index 2cdf93b12..6fd0e8523 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. 例如,要在这里显示 最后一个命令开始的时间,您需要如下操作:
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## 在 Cmd 中自定义提示符显示前和执行前的命令
@@ -266,7 +266,7 @@ right_format = """$all"""
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ continuation_prompt = '▶▶ '
并非每种类型的字符串都会被每个终端正确显示。 特别地,以下是已知的几种情况:
-- 许多终端默认禁用对 `blink` 的支持
+- 许多终端默认禁用对 `blink` 的支持.
- [iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564) 不支持 `hidden`
-- macOS 的默认终端不支持 `strikethrough`
+- macOS 的默认终端不支持 `strikethrough`.
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index 6a74818aa..9608e2db7 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -158,14 +158,14 @@ line2
#### 样式字符串
-Starship 中的大多数组件允许您为其设置显示样式。 显示样式可以通过一个字符串字段(一般是 `style`)来设置。 以下的例子给出了一些样式字符串并描述了它们的效果。 For details on the full syntax, consult the [advanced config guide](../advanced-config/).
+Starship 中的大多数组件允许您为其设置显示样式。 显示样式可以通过一个字符串字段(一般是 `style`)来设置。 以下的例子给出了一些样式字符串并描述了它们的效果。 样式字符串的完整语法请查阅 [高级配置指南](../advanced-config/)。
-- `'fg:green bg:blue'` sets green text on a blue background
-- `'bg:blue fg:bright-green'` sets bright green text on a blue background
-- `'bold fg:27'` sets bold text with [ANSI color](https://i.stack.imgur.com/KTSQa.png) 27
-- `'underline bg:#bf5700'` sets underlined text on a burnt orange background
-- `'bold italic fg:purple'` sets bold italic purple text
-- `''` explicitly disables all styling
+- `'fg:green bg:blue'` 在蓝色背景上显示绿色文本
+- `'bg:blue fg:bright-green'` 在蓝色背景上显示亮绿色文本
+- `'bold fg:27'` 用 [ANSI颜色](https://i.stack.imgur.com/KTSQa.png) 27 设置粗体文本
+- `'underline bg:#bf5700'` 在深橙色背景上显示带下划线文本
+- `'bold italic fg:purple'` 设置粗体、斜体、紫色文本
+- `''` 显式禁用所有样式
请注意,最终的显示样式将由您的终端模拟器控制。 例如,有的终端模拟器对于“bold”属性的文本是加亮颜色而不是加粗文字,有的颜色主题对“普通”和“明亮”两种属性的颜色使用相同的颜色值。 此外,要获得意大利体文本(一般设计为斜体),您的终端必须支持意大利体显示。
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | -------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
-| `symbol` | `'🍞 '` | 用于表示Bun的格式化字符串 |
+| `symbol` | `'🥟 '` | 用于表示Bun的格式化字符串 |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | 哪些文件应触发此组件 |
| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 配置项
+
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ---------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'⭐ '` | A format string representing the symbol of Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | 哪些文件应触发此组件 |
+| `style` | `'bold #FFAFF3'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### 变量
+
+| 字段 | 示例 | 描述 |
+| --------- | -------- | ---------------------- |
+| version | `v1.0.0` | The version of `gleam` |
+| 符号 | | `symbol`对应值 |
+| style\* | | `style`对应值 |
+
+*: 此变量只能作为样式字符串的一部分使用
+
+### 示例
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | 哪些文件应触发此组件 |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### 配置项
+
+| 选项 | 默认值 | 描述 |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `符号` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | 此组件的样式。 |
+| `format` | `'[$symbol$name]($style)'` | 组件格式化模板。 |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### 变量
+
+| 字段 | 示例 | 描述 |
+| --------- | ----------- | ---------------------------- |
+| name | `localhost` | The name of the NATS context |
+| 符号 | | `symbol`对应值 |
+| style\* | | `style`对应值 |
+
+### 示例
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### 配置项
+
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `符号` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+
+### 变量
+
+| 字段 | 示例 | 描述 |
+| --------- | ------------- | --------------------- |
+| version | `dev-2024-03` | The version of `odin` |
+| 符号 | | `symbol`对应值 |
+| style\* | | `style`对应值 |
+
+*: 此变量只能作为样式字符串的一部分使用
+
+### 示例
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | 组件格式化模板。 |
| `show_always` | `false` | 总是显示 `username` 组件。 |
| `disabled` | `false` | 禁用 `username` 组件。 |
+| `aliases` | `{}` | Translate system usernames to something else |
### 变量
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/zh-CN/faq/README.md b/docs/zh-CN/faq/README.md
index 3a08049cc..5702a6712 100644
--- a/docs/zh-CN/faq/README.md
+++ b/docs/zh-CN/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## 我如何在没有 `sudo` 的情况下安装 Starship?
-Shell 安装脚本(`https://starship.rs/install`) 只尝试使用 `sudo`当安装目录不可被当前用户写入 默认安装目录是环境变量 `$BIN_DIR` 的值或者 `/usr/loca/bin` 如果 if `$BIN_DIR` 未设置 如果你使用一个用户可写的安装目录替代, 你应该可以不使用 `sudo` 安装 Starship 例如, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` 使用 `-b` 选项设置安装目录到 `~/.local/bin`
+Shell 安装脚本(`https://starship.rs/install`) 只尝试使用 `sudo`当安装目录不可被当前用户写入 The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. 如果你使用一个用户可写的安装目录替代, 你应该可以不使用 `sudo` 安装 Starship 例如, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` 使用 `-b` 选项设置安装目录到 `~/.local/bin`
对于非交互 Starship 安装, 请添加 `-y` 以跳过确认 查看安装脚本源码以获取所有支持的选项
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index e3c9985bf..112ee7eb4 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -431,6 +431,8 @@ eval "$(starship init zsh)"
通过 [成为赞助商 ](https://github.com/sponsors/starship)来支持这个项目。 您的名字或 LOGO 将在此处显示,并链接到您的网站。
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/zh-CN/installing/README.md b/docs/zh-CN/installing/README.md
index 2d7c7a2ae..3c11652e2 100644
--- a/docs/zh-CN/installing/README.md
+++ b/docs/zh-CN/installing/README.md
@@ -45,7 +45,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### 获取二进制文件
diff --git a/docs/zh-TW/README.md b/docs/zh-TW/README.md
index 194c5dbad..2aa0ae603 100644
--- a/docs/zh-TW/README.md
+++ b/docs/zh-TW/README.md
@@ -25,6 +25,20 @@ metaTitle: "Starship:跨 Shell 提示字元"
description: Starship 是適合任何 shell 的最小、極速、高度客製化的提示字元! 顯示你需要的訊息,同時保持順暢與最小化。 有針對 Bash、Fish、ZSH、Ion 、Tcsh、Elvish、Nu、Xonsh、Cmd 與 Powershell 的快速安裝指南。
---
+
+
diff --git a/docs/zh-TW/advanced-config/README.md b/docs/zh-TW/advanced-config/README.md
index aa8dbbf27..d53f4cbfc 100644
--- a/docs/zh-TW/advanced-config/README.md
+++ b/docs/zh-TW/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
-The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \, the prompt specified by `PS1` is erased on leaving the current command line. If \ contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \ and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## Custom pre-prompt and pre-execution Commands in Cmd
@@ -266,7 +266,7 @@ Note: Continuation prompts are only available in the following shells:
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ The `none` token overrides all other tokens in a string if it is not part of a `
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
-- Many terminals disable support for `blink` by default
+- Many terminals disable support for `blink` by default.
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- `strikethrough` is not supported by the default macOS Terminal.app.
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index babed1747..5112c4e25 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -281,6 +281,7 @@ $elixir\
$elm\
$erlang\
$fennel\
+$gleam\
$golang\
$guix_shell\
$haskell\
@@ -324,6 +325,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -601,7 +603,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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 Bun. |
+| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1966,6 +1968,44 @@ Use Windows Starship executable on Windows paths in WSL
windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.exe'
```
+## Gleam
+
+The `gleam` module shows the currently installed version of [Gleam](https://gleam.run/). By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `gleam.toml` file
+- The current directory contains a file with the `.gleam` extension
+
+### 選項
+
+| 選項 | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `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 Go. |
+| `detect_extensions` | `['gleam']` | Which extensions should trigger this module. |
+| `detect_files` | `['gleam.toml']` | Which filenames should trigger this module. |
+| `style` | `'bold #FFAFF3'` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `gleam` module. |
+
+### 變數
+
+| 變數 | 範例 | 說明 |
+| --------- | -------- | ------------------------------------ |
+| version | `v1.0.0` | The version of `gleam` |
+| 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
+
+### 範例
+
+```toml
+# ~/.config/starship.toml
+
+[gleam]
+format = 'via [⭐ $version](bold red) '
+```
+
## Go
The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2444,7 +2484,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
-When the module is enabled it will always be active, unless any of `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions.
+When the module is enabled it will always be active, unless any of `detect_env_vars`, `detect_extensions`, `detect_files` or `detect_folders` have been set in which case the module will only be active in directories that match those conditions or one of the environmatal variable has been set.
:::
@@ -2466,6 +2506,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `detect_env_vars` | `[]` | Which environmental variables should trigger this module |
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
@@ -2768,6 +2809,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### 選項
+
+| 選項 | 預設 | 說明 |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | 這個模組的風格。 |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### 變數
+
+| 變數 | 範例 | 說明 |
+| --------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### 範例
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -2943,6 +3013,43 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
format = 'via [🐪 $version]($style) '
```
+## Odin
+
+The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
+
+### 選項
+
+| 選項 | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `show_commit` | `false` | Shows the commit as part of the version. |
+| `symbol` | `'Ø '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold bright-blue'` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `odin` module. |
+| `detect_extensions` | `['odin']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+
+### 變數
+
+| 變數 | 範例 | 說明 |
+| --------- | ------------- | ------------------------------------ |
+| version | `dev-2024-03` | The version of `odin` |
+| 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
+
+### 範例
+
+```toml
+# ~/.config/starship.toml
+
+[odin]
+format = 'via [ ($version )]($style)'
+show_commit = true
+```
+
## Open Policy Agent
The `opa` module shows the currently installed version of the OPA tool. By default the module will be shown if the current directory contains a `.rego` file.
@@ -3811,7 +3918,7 @@ format = '$shlvl level(s) down'
threshold = 3
```
-Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
+Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceding characters are provided by `shlvl`.
```toml
# ~/.config/starship.toml
@@ -4241,6 +4348,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `format` | `'[$user]($style) in '` | The format for the module. |
| `show_always` | `false` | 總是顯示 `username` 模組。 |
| `disabled` | `false` | 停用 `username` 模組。 |
+| `aliases` | `{}` | Translate system usernames to something else |
### 變數
@@ -4262,6 +4370,7 @@ style_root = 'black bold'
format = 'user: [$user]($style) '
disabled = false
show_always = true
+aliases = { "corpuser034g" = "matchai" }
```
#### Hide the hostname in remote tmux sessions
diff --git a/docs/zh-TW/faq/README.md b/docs/zh-TW/faq/README.md
index 6f310f4d2..1e8406176 100644
--- a/docs/zh-TW/faq/README.md
+++ b/docs/zh-TW/faq/README.md
@@ -123,7 +123,7 @@ sh -c 'rm "$(command -v 'starship')"'
## How do I install Starship without `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation directory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
diff --git a/docs/zh-TW/guide/README.md b/docs/zh-TW/guide/README.md
index 8752dd7ad..f67348413 100644
--- a/docs/zh-TW/guide/README.md
+++ b/docs/zh-TW/guide/README.md
@@ -431,6 +431,8 @@ eval "$(starship init zsh)"
你可以[成爲一個贊助者](https://github.com/sponsors/starship)來支持這個專案! 你的名字和頭像會在這裏顯示,並且會帶有一個前往你網站的鏈接。
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
diff --git a/docs/zh-TW/installing/README.md b/docs/zh-TW/installing/README.md
index 6729e5a1a..83e97fe96 100644
--- a/docs/zh-TW/installing/README.md
+++ b/docs/zh-TW/installing/README.md
@@ -45,7 +45,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
emerge app-shells/starship
```
-## [Nix](https://nixos.wiki/wiki/Nix)
+## [Nix](https://wiki.nixos.org/wiki/Nix)
### 獲得執行檔