mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-30 02:28:28 +00:00
docs(i18n): new Crowdin updates (#6328)
* New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Spanish) * New translations readme.md (French) * New translations readme.md (Spanish) * New translations readme.md (Arabic) * New translations readme.md (German) * New translations readme.md (Italian) * New translations readme.md (Japanese) * New translations readme.md (Korean) * New translations readme.md (Dutch) * New translations readme.md (Norwegian) * New translations readme.md (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * New translations readme.md (Ukrainian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Traditional) * New translations readme.md (Vietnamese) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Indonesian) * New translations readme.md (Bengali) * New translations readme.md (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (French) * New translations readme.md (Dutch) * New translations readme.md (Dutch) * New translations readme.md (Dutch) * New translations readme.md (French) * New translations readme.md (Spanish) * New translations readme.md (Arabic) * New translations readme.md (German) * New translations readme.md (Italian) * New translations readme.md (Japanese) * New translations readme.md (Korean) * New translations readme.md (Dutch) * New translations readme.md (Norwegian) * New translations readme.md (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * New translations readme.md (Ukrainian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Traditional) * New translations readme.md (Vietnamese) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Indonesian) * New translations readme.md (Bengali) * New translations readme.md (Sorani (Kurdish)) * New translations nerd-font.md (Korean) * New translations bracketed-segments.md (Korean) * New translations no-runtimes.md (Korean) * New translations plain-text.md (Korean) * New translations pure-preset.md (Korean) * New translations pastel-powerline.md (Korean) * New translations no-nerd-font.md (Korean) * New translations no-empty-icons.md (Korean) * New translations tokyo-night.md (Korean) * New translations gruvbox-rainbow.md (Korean) * New translations jetpack.md (Korean) * New translations readme.md (Japanese) * New translations readme.md (Japanese) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (French) * New translations readme.md (Spanish) * New translations readme.md (Arabic) * New translations readme.md (German) * New translations readme.md (Italian) * New translations readme.md (Japanese) * New translations readme.md (Korean) * New translations readme.md (Dutch) * New translations readme.md (Norwegian) * New translations readme.md (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * New translations readme.md (Ukrainian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Traditional) * New translations readme.md (Vietnamese) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Indonesian) * New translations readme.md (Bengali) * New translations readme.md (Sorani (Kurdish)) * New translations readme.md (Spanish) * New translations readme.md (French) * New translations readme.md (Spanish) * New translations readme.md (Arabic) * New translations readme.md (German) * New translations readme.md (Italian) * New translations readme.md (Japanese) * New translations readme.md (Korean) * New translations readme.md (Dutch) * New translations readme.md (Norwegian) * New translations readme.md (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * New translations readme.md (Ukrainian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Traditional) * New translations readme.md (Vietnamese) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Indonesian) * New translations readme.md (Bengali) * New translations readme.md (Sorani (Kurdish)) * New translations readme.md (French) * New translations readme.md (Spanish) * New translations readme.md (German) * New translations readme.md (Japanese) * New translations readme.md (Russian) * New translations readme.md (Ukrainian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Traditional) * New translations readme.md (Vietnamese) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Indonesian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Spanish) * New translations readme.md (Spanish) * New translations readme.md (Ukrainian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations bracketed-segments.md (Russian) * New translations nerd-font.md (Russian) * New translations no-runtimes.md (Russian) * New translations plain-text.md (Russian) * New translations pure-preset.md (Russian) * New translations pastel-powerline.md (Russian) * New translations no-nerd-font.md (Russian) * New translations no-empty-icons.md (Russian) * New translations tokyo-night.md (Russian) * New translations gruvbox-rainbow.md (Russian) * New translations jetpack.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (French) * New translations readme.md (French) * New translations readme.md (Spanish) * New translations readme.md (Spanish) * New translations readme.md (Spanish) * New translations readme.md (Arabic) * New translations readme.md (Arabic) * New translations readme.md (Arabic) * New translations readme.md (German) * New translations readme.md (German) * New translations readme.md (German) * New translations readme.md (Italian) * New translations readme.md (Italian) * New translations readme.md (Italian) * New translations readme.md (Japanese) * New translations readme.md (Japanese) * New translations readme.md (Japanese) * New translations readme.md (Korean) * New translations readme.md (Korean) * New translations readme.md (Korean) * New translations readme.md (Dutch) * New translations readme.md (Dutch) * New translations readme.md (Dutch) * New translations readme.md (Norwegian) * New translations readme.md (Norwegian) * New translations readme.md (Norwegian) * New translations readme.md (Polish) * New translations readme.md (Polish) * New translations readme.md (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Portuguese) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Russian) * New translations readme.md (Turkish) * New translations readme.md (Turkish) * New translations readme.md (Turkish) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Simplified) * New translations readme.md (Chinese Traditional) * New translations readme.md (Chinese Traditional) * New translations readme.md (Chinese Traditional) * New translations readme.md (Vietnamese) * New translations readme.md (Vietnamese) * New translations readme.md (Vietnamese) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Portuguese, Brazilian) * New translations readme.md (Indonesian) * New translations readme.md (Indonesian) * New translations readme.md (Indonesian) * New translations readme.md (Bengali) * New translations readme.md (Bengali) * New translations readme.md (Bengali) * New translations readme.md (Sorani (Kurdish)) * New translations readme.md (Sorani (Kurdish)) * New translations readme.md (Sorani (Kurdish)) * New translations readme.md (French)
This commit is contained in:
parent
43d6ceeaab
commit
2c487cac31
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | الافتراضي | الوصف |
|
| Option | الافتراضي | الوصف |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | الافتراضي | الوصف |
|
| Option | الافتراضي | الوصف |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | الافتراضي | الوصف |
|
| Option | الافتراضي | الوصف |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | مثال | الوصف |
|
| Variable | مثال | الوصف |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
আপনার Nushell env ফাইলের (Nushell এ `$nu.env-path` কমান্ডটি রান করে ফাইলটি খুঁজে বের করুন) শেষে নিম্নলিখিত লাইনগুলি যোগ করুন:
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
এরপর আপনার Nushell কনফিগের (Nushell এ `$nu.config-path` কমান্ডটি রান করে ফাইলটি খুঁজে বের করুন) শেষে নিম্নলিখিত লাইনটি যোগ করুন:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Example | Description |
|
| Variable | Example | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
আপনার Nushell env ফাইলের (Nushell এ `$nu.env-path` কমান্ডটি রান করে ফাইলটি খুঁজে বের করুন) শেষে নিম্নলিখিত লাইনগুলি যোগ করুন:
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
এরপর আপনার Nushell কনফিগের (Nushell এ `$nu.config-path` কমান্ডটি রান করে ফাইলটি খুঁজে বের করুন) শেষে নিম্নলিখিত লাইনটি যোগ করুন:
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
বিঃদ্রঃ শুধুমাত্র Nushell v0.78+ কাজ করবে ।
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| گۆڕاو | نموونە | Description |
|
| گۆڕاو | نموونە | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -334,20 +334,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Das wird sich in Zukunft ändern. Nur Nushell v0.78+ wird unterstützt.
|
Das wird sich in Zukunft ändern. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Füge folgendes zum Ende deiner Nushell env Datei hinzu (finde sie, indem du `$nu.env-path` in Nushell ausführst):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Und füge folgendes am Ende deiner Nushell-Konfiguration hinzu (du findest diese, indem du folgenden Befehl in Nushell ausführst `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -592,21 +592,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- Das aktuelle Verzeichnis enthält eine `bun.lock`-Datei
|
||||||
- Das aktuelle Verzeichnis enthält eine `bun.lockb`-Datei
|
- Das aktuelle Verzeichnis enthält eine `bun.lockb`-Datei
|
||||||
- Das aktuelle Verzeichnis enthält eine `bunfig.toml`-Datei
|
- Das aktuelle Verzeichnis enthält eine `bunfig.toml`-Datei
|
||||||
|
|
||||||
### Optionen
|
### Optionen
|
||||||
|
|
||||||
| Option | Standardwert | Beschreibung |
|
| Option | Standardwert | Beschreibung |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | Das Format für das Modul. |
|
| `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` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | Stil für dieses Modul. |
|
| `style` | `'bold red'` | Stil für dieses Modul. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1167,20 +1168,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Optionen
|
### Optionen
|
||||||
|
|
||||||
| Option | Standartwert | Beschreibung |
|
| Option | Standartwert | Beschreibung |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Das Format für das Modul. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Das Format für das Modul. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | Stil für dieses Modul. |
|
| `style` | `'bold orange'` | Stil für dieses Modul. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3057,7 +3059,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Optionen
|
||||||
|
|
||||||
@ -3201,6 +3203,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3222,6 +3225,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3238,6 +3242,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4093,38 +4098,40 @@ Dieses Modul ist standardmäßig deaktiviert. Setze in deiner Konfiguration `dis
|
|||||||
|
|
||||||
### Optionen
|
### Optionen
|
||||||
|
|
||||||
| Option | Standartwert | Beschreibung |
|
| Option | Standartwert | Beschreibung |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | Stil für dieses Modul. |
|
| `style` | `'bold red'` | Stil für dieses Modul. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Beispiel | Beschreibung |
|
| Variable | Beispiel | Beschreibung |
|
||||||
| -------------- | -------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | -------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Spiegelt den Wert der Option `symbol` |
|
| symbol | | Spiegelt den Wert der Option `symbol` |
|
||||||
| style\* | | Spiegelt den Wert der Option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Füge folgendes zum Ende deiner Nushell env Datei hinzu (finde sie, indem du `$nu.env-path` in Nushell ausführst):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Und füge Folgendes am Ende deiner Nushell-Konfiguration hinzu (finde sie, indem du folgenden Befehl in Nushell ausführst `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Beachte: Nushell wird erst ab v0.78+ unterstützt
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Esto cambiará en el futuro. Sólo se admite Nushell v0.78+.
|
Esto cambiará en el futuro. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Añade lo siguiente al final de tu archivo Nushell env (encuéntralo ejecutando `$nu.env-path` en Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Añade lo siguiente al final de tu configuración de Nushell (encuéntrala ejecutando `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ A pesar de que Starship es una prompt versátil, a veces necesitas hacer más qu
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Las configuraciones de esta sección están sujetas a cambios en futuras versiones de Starship.
|
Las configuraciones de esta sección están sujetos a cambios en futuras versiones de Starship.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||||
|
|
||||||
|
- El directorio actual contiene un archivo `bun.lock`
|
||||||
- El directorio actual contiene un archivo `bun.lockb`
|
- El directorio actual contiene un archivo `bun.lockb`
|
||||||
- El directorio actual contiene un archivo `bunfig.toml`
|
- El directorio actual contiene un archivo `bunfig.toml`
|
||||||
|
|
||||||
### Opciones
|
### Opciones
|
||||||
|
|
||||||
| Opción | Predeterminado | Descripción |
|
| Opción | Predeterminado | Descripción |
|
||||||
| ------------------- | ------------------------------------ | --------------------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | --------------------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
|
| `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` |
|
| `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_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_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Qué nombres de archivo deberían activar este módulo. |
|
||||||
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
|
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
|
||||||
| `style` | `'bold red'` | El estilo del módulo. |
|
| `style` | `'bold red'` | El estilo del módulo. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1175,6 +1176,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
|
| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
|
||||||
| `detect_files` | `['.envrc']` | Qué nombres de archivo deberían activar este módulo. |
|
| `detect_files` | `['.envrc']` | Qué nombres de archivo deberían activar este módulo. |
|
||||||
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
|
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
|
||||||
|
| `detect_env_vars` | `['DIRENV_FILE']` | Qué variables de entorno deben activar este módulo. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `not_allowed_msg` | `'no permitido'` | El mensaje que se muestra cuando un archivo rc no está permitido. |
|
| `not_allowed_msg` | `'no permitido'` | El mensaje que se muestra cuando un archivo rc no está permitido. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
@ -1185,7 +1187,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
| Variable | Ejemplo | Descripción |
|
| Variable | Ejemplo | Descripción |
|
||||||
| --------- | ------------------- | --------------------------------------- |
|
| --------- | ------------------- | --------------------------------------- |
|
||||||
| loaded | `loaded` | Whether the current rc file is loaded. |
|
| cargado | `cargado` | Whether the current rc file is loaded. |
|
||||||
| allowed | `denied` | Whether the current rc file is allowed. |
|
| allowed | `denied` | Whether the current rc file is allowed. |
|
||||||
| rc_path | `/home/test/.envrc` | The current rc file path. |
|
| rc_path | `/home/test/.envrc` | The current rc file path. |
|
||||||
| symbol | | Refleja el valor de la opción `symbol`. |
|
| symbol | | Refleja el valor de la opción `symbol`. |
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Opciones
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ Este módulo está deshabilitado por defecto. Para activarlo, establece `disable
|
|||||||
|
|
||||||
### Opciones
|
### Opciones
|
||||||
|
|
||||||
| Opción | Predeterminado | Descripción |
|
| Opción | Predeterminado | Descripción |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
|
| --------------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | El formato del módulo |
|
| `format` | `'[$symbol$status]($style) '` | El formato del módulo |
|
||||||
| `symbol` | `'❌'` | El símbolo mostrado en el error del programa |
|
| `symbol` | `'❌'` | El símbolo mostrado en el error del programa |
|
||||||
| `success_symbol` | `''` | El símbolo mostrado en el éxito del programa |
|
| `success_symbol` | `''` | El símbolo mostrado en el éxito del programa |
|
||||||
| `not_executable_symbol` | `'🚫'` | El símbolo mostrado cuando el archivo no es ejecutable |
|
| `not_executable_symbol` | `'🚫'` | El símbolo mostrado cuando el archivo no es ejecutable |
|
||||||
| `not_found_symbol` | `'🔍'` | El símbolo mostrado cuando no se encuentra el comando |
|
| `not_found_symbol` | `'🔍'` | El símbolo mostrado cuando no se encuentra el comando |
|
||||||
| `sigint_symbol` | `'🧱'` | El símbolo mostrado en SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | El símbolo mostrado en SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | El símbolo mostrado en cualquier señal |
|
| `signal_symbol` | `'⚡'` | El símbolo mostrado en cualquier señal |
|
||||||
| `style` | `'bold red'` | El estilo del módulo. |
|
| `style` | `'bold red'` | El estilo del módulo. |
|
||||||
| `recognize_signal_code` | `true` | Habilita el mapeo de señales desde el código de salida |
|
| `success_style` | | El estilo utilizado en el éxito del programa (por defecto `style` si se desconfigura). |
|
||||||
| `map_symbol` | `false` | Habilita el mapeo de símbolos desde el código de salida |
|
| `failure_style` | | El estilo utilizado en el fallo del programa (por defecto `style` si se desconfigura). |
|
||||||
| `pipestatus` | `false` | Habilita el reporte de pipstatus |
|
| `recognize_signal_code` | `true` | Habilita el mapeo de señales desde el código de salida |
|
||||||
| `pipestatus_separator` | <code>|</code> | El símbolo usado para separar segmentos de pipestatus (soporta formato) |
|
| `map_symbol` | `false` | Habilita el mapeo de símbolos desde el código de salida |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | El formato del módulo cuando el comando es un pipeline |
|
| `pipestatus` | `false` | Habilita el reporte de pipstatus |
|
||||||
| `pipestatus_segment_format` | | Cuando se especifica, reemplaza `formato` al formatear segmentos de pipestatus |
|
| `pipestatus_separator` | <code>|</code> | El símbolo usado para separar segmentos de pipestatus (soporta formato) |
|
||||||
| `disabled` | `true` | Deshabilita el módulo `status`. |
|
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style) '` | El formato del módulo cuando el comando es un pipeline |
|
||||||
|
| `pipestatus_segment_format` | | Cuando se especifica, reemplaza `formato` al formatear segmentos de pipestatus |
|
||||||
|
| `disabled` | `true` | Deshabilita el módulo `status`. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Ejemplo | Descripción |
|
| Variable | Ejemplo | Descripción |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | ------------------------------------------------------------------------------------------------------ |
|
||||||
| estado | `127` | El código de salida del último comando |
|
| estado | `127` | El código de salida del último comando |
|
||||||
| hex_status | `0x7F` | El código de salida del último comando en hexadecimal |
|
| hex_status | `0x7F` | El código de salida del último comando en hexadecimal |
|
||||||
| int | `127` | El código de salida del último comando |
|
| int | `127` | El código de salida del último comando |
|
||||||
| common_meaning | `ERROR` | Comprobación del código si no es una señal |
|
| common_meaning | `ERROR` | Comprobación del código si no es una señal |
|
||||||
| signal_number | `9` | Número de señal correspondiente al código de salida, sólo si está señalizado |
|
| signal_number | `9` | Número de señal correspondiente al código de salida, sólo si está señalizado |
|
||||||
| signal_name | `KILL` | Nombre de la señal correspondiente al código de salida, sólo si está señalizada |
|
| signal_name | `KILL` | Nombre de la señal correspondiente al código de salida, sólo si está señalizada |
|
||||||
| maybe_int | `7` | Contiene el número de código de salida cuando no se ha encontrado ningún significado |
|
| maybe_int | `7` | Contiene el número de código de salida cuando no se ha encontrado ningún significado |
|
||||||
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Refleja el valor de la opción `symbol` |
|
| symbol | | Refleja el valor de la opción `symbol` |
|
||||||
| style\* | | Refleja el valor de la opción `style` |
|
| style\* | | Copia el valor de la opción `success_style` en el éxito del programa y `failure_style` de lo contrario |
|
||||||
|
|
||||||
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
|
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Añade lo siguiente al final de tu archivo Nushell env (encuéntralo ejecutando `$nu.env-path` en Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Añade lo siguiente al final de tu configuración de Nushell (encuéntrala ejecutando `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Nota: Sólo se admite Nushell v0.78+
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Ceci va changer dans le futur. Seul Nushell v0.78+ est supporté.
|
Ceci va changer dans le futur. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Ajoutez le code suivant à la fin de votre configuration Nushell (trouvez-la en exécutant `$nu.config path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Ajoutez le code suivant à la fin de votre configuration Nushell (trouvez-la en exécutant `$nu.config path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Seul Nushell v0.78+ est supporté
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Hal ini dapat berubah di kemudian hari. Hanya Nushell v0.78+ yang menerima dukungan.
|
Hal ini dapat berubah di kemudian hari. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Tambahkan baris berikut di akhir env file Nushell anda (dengan menjalankan `$nu.env-path` di Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Lalu tambahkan baris berikut di baris terakhir konfigurasi Nushell (temukan dengan menjalankan `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
|
||||||
|
|
||||||
|
- Direktori ini memiliki berkas `bun.lock`
|
||||||
- Direktori ini memiliki berkas `bun.lockb`
|
- Direktori ini memiliki berkas `bun.lockb`
|
||||||
- Direktori ini memiliki berkas `bunfig.toml`
|
- Direktori ini memiliki berkas `bunfig.toml`
|
||||||
|
|
||||||
### Opsi
|
### Opsi
|
||||||
|
|
||||||
| Opsi | Bawaan | Deskripsi |
|
| Opsi | Bawaan | Deskripsi |
|
||||||
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
|
| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
|
||||||
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | filenames mana yang sebaiknya memicu modul ini. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | filenames mana yang sebaiknya memicu modul ini. |
|
||||||
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
|
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
|
||||||
| `style` | `'bold red'` | Gaya penataan untuk modul. |
|
| `style` | `'bold red'` | Gaya penataan untuk modul. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variabel
|
### Variabel
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Opsi
|
### Opsi
|
||||||
|
|
||||||
| Opsi | Bawaan | Deskripsi |
|
| Opsi | Bawaan | Deskripsi |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Format dari modul. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Format dari modul. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | Gaya penataan untuk modul. |
|
| `style` | `'bold orange'` | Gaya penataan untuk modul. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
|
| `detect_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
|
||||||
| `detect_files` | `['.envrc']` | filenames mana yang sebaiknya memicu modul ini. |
|
| `detect_files` | `['.envrc']` | filenames mana yang sebaiknya memicu modul ini. |
|
||||||
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
|
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variabel
|
### Variabel
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Opsi
|
### Opsi
|
||||||
|
|
||||||
| Opsi | Bawaan | Deskripsi |
|
| Opsi | Bawaan | Deskripsi |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `fromat` | `'[$symbol$status]($style) '` | The format of the module |
|
| `fromat` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | Gaya penataan untuk modul. |
|
| `style` | `'bold red'` | Gaya penataan untuk modul. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variabel
|
### Variabel
|
||||||
|
|
||||||
| Variabel | Contoh | Deskripsi |
|
| Variabel | Contoh | Deskripsi |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Menyalin nilai dari opsi `symbol` |
|
| symbol | | Menyalin nilai dari opsi `symbol` |
|
||||||
| style\* | | Menyalin nilai dari opsi `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
|
*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Tambahkan baris berikut di akhir env file Nushell anda (dengan menjalankan `$nu.env-path` di Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Lalu tambahkan baris berikut di baris terakhir konfigurasi Nushell (temukan dengan menjalankan `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Opzioni
|
### Opzioni
|
||||||
|
|
||||||
| Opzione | Default | Descrizione |
|
| Opzione | Default | Descrizione |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `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` |
|
| `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_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Quali nomi di file dovrebbero attivare questo modulo. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Quali nomi di file dovrebbero attivare questo modulo. |
|
||||||
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
|
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
|
||||||
| `style` | `'bold red'` | Lo stile per il modulo. |
|
| `style` | `'bold red'` | Lo stile per il modulo. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Opzioni
|
### Opzioni
|
||||||
|
|
||||||
| Opzione | Default | Descrizione |
|
| Opzione | Default | Descrizione |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | Lo stile per il modulo. |
|
| `style` | `'bold orange'` | Lo stile per il modulo. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
|
| `detect_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
|
||||||
| `detect_files` | `['.envrc']` | Quali nomi di file dovrebbero attivare questo modulo. |
|
| `detect_files` | `['.envrc']` | Quali nomi di file dovrebbero attivare questo modulo. |
|
||||||
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
|
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Opzioni
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Opzioni
|
### Opzioni
|
||||||
|
|
||||||
| Opzione | Default | Descrizione |
|
| Opzione | Default | Descrizione |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | Lo stile per il modulo. |
|
| `style` | `'bold red'` | Lo stile per il modulo. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Esempio | Descrizione |
|
| Variable | Esempio | Descrizione |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
これは将来的に変更される可能性があります。 Nushell v0.78+ のみサポートされています。
|
これは将来的に変更される可能性があります。 Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
そして、Nushellの設定ファイルの最後に以下を追加してください( `$nu.config-path` を実行してください):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
そして、Nushellの設定ファイルの最後に以下を追記してください (`$nu.config-path` を実行してください):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
`bun` モジュールは、現在インストールされている[bun](https://bun.sh) JavaScript ランタイムのバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
|
`bun` モジュールは、現在インストールされている[bun](https://bun.sh) JavaScript ランタイムのバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||||
|
|
||||||
|
- 現在のディレクトリに`bun.lock`ファイルが含まれている
|
||||||
- カレントディレクトリに`bun.lockb`ファイルが含まれている
|
- カレントディレクトリに`bun.lockb`ファイルが含まれている
|
||||||
- カレントディレクトリに`bunfig.toml`ファイルが含まれている
|
- カレントディレクトリに`bunfig.toml`ファイルが含まれている
|
||||||
|
|
||||||
### オプション
|
### オプション
|
||||||
|
|
||||||
| オプション | デフォルト | 説明 |
|
| オプション | デフォルト | 説明 |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------ |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
|
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
|
||||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||||
| `symbol` | `'🥟 '` | Bun のシンボルを表すフォーマット文字列 |
|
| `symbol` | `'🥟 '` | Bun のシンボルを表すフォーマット文字列 |
|
||||||
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | どのファイル名がこのモジュールをアクティブにするか |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | どのファイル名がこのモジュールをアクティブにするか |
|
||||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||||
| `style` | `'bold red'` | モジュールのスタイルです。 |
|
| `style` | `'bold red'` | モジュールのスタイルです。 |
|
||||||
| `disabled` | `false` | `bun` モジュールを無効にします。 |
|
| `disabled` | `false` | `bun` モジュールを無効にします。 |
|
||||||
|
|
||||||
### 変数
|
### 変数
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ truncation_symbol = '…/'
|
|||||||
|
|
||||||
### オプション
|
### オプション
|
||||||
|
|
||||||
| オプション | デフォルト | 説明 |
|
| オプション | デフォルト | 説明 |
|
||||||
| ------------------- | -------------------------------------- | ------------------------------------------ |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | module のフォーマットです。 |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | module のフォーマットです。 |
|
||||||
| `symbol` | `'direnv '` | Direnv コンテキストの前に表示される記号です。 |
|
| `symbol` | `'direnv '` | Direnv コンテキストの前に表示される記号です。 |
|
||||||
| `style` | `'bold orange'` | モジュールのスタイルです。 |
|
| `style` | `'bold orange'` | モジュールのスタイルです。 |
|
||||||
| `disabled` | `true` | `Direnv`モジュールを無効にします。 |
|
| `disabled` | `true` | `Direnv`モジュールを無効にします。 |
|
||||||
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||||
| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
|
| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
|
||||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||||
| `allowed_msg` | `'allowed'` | Rcファイルが許可されているとき (allowed) に表示されるメッセージです。 |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | Rcファイルが不許可のとき (not_allowed) に表示されるメッセージです。 |
|
| `allowed_msg` | `'allowed'` | Rcファイルが許可されているとき (allowed) に表示されるメッセージです。 |
|
||||||
| `denied_msg` | `'denied'` | Rcファイルが拒否されているとき (denied) に表示されるメッセージです。 |
|
| `not_allowed_msg` | `'not allowed'` | Rcファイルが不許可のとき (not_allowed) に表示されるメッセージです。 |
|
||||||
| `loaded_msg` | `'loaded'` | Rcファイルがロードされているときに表示されるメッセージです。 |
|
| `denied_msg` | `'denied'` | Rcファイルが拒否されているとき (denied) に表示されるメッセージです。 |
|
||||||
| `unloaded_msg` | `'not loaded'` | Rcファイルがロードされていないときに表示されるメッセージです。 |
|
| `loaded_msg` | `'loaded'` | Rcファイルがロードされているときに表示されるメッセージです。 |
|
||||||
|
| `unloaded_msg` | `'not loaded'` | Rcファイルがロードされていないときに表示されるメッセージです。 |
|
||||||
|
|
||||||
### 変数
|
### 変数
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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.
|
||||||
|
|
||||||
### オプション
|
### オプション
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ format = '[$symbol$environment](dimmed blue) '
|
|||||||
|
|
||||||
### オプション
|
### オプション
|
||||||
|
|
||||||
| オプション | デフォルト | 説明 |
|
| オプション | デフォルト | 説明 |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | モジュールのフォーマットです。 |
|
| `format` | `'[$symbol$status]($style) '` | モジュールのフォーマットです。 |
|
||||||
| `symbol` | `'❌'` | プログラムエラー時に表示される記号です。 |
|
| `symbol` | `'❌'` | プログラムエラー時に表示される記号です。 |
|
||||||
| `success_symbol` | `''` | プログラム成功時に表示される記号です。 |
|
| `success_symbol` | `''` | プログラム成功時に表示される記号です。 |
|
||||||
| `not_executable_symbol` | `'🚫'` | ファイルが実行可能ファイルでないときに表示されるシンボルです。 |
|
| `not_executable_symbol` | `'🚫'` | ファイルが実行可能ファイルでないときに表示されるシンボルです。 |
|
||||||
| `not_found_symbol` | `'🔍'` | コマンドが見つからないときに表示されるシンボルです。 |
|
| `not_found_symbol` | `'🔍'` | コマンドが見つからないときに表示されるシンボルです。 |
|
||||||
| `sigint_symbol` | `'🧱'` | SIGINT (Ctrl + c) に際して表示されるシンボルです。 |
|
| `sigint_symbol` | `'🧱'` | SIGINT (Ctrl + c) に際して表示されるシンボルです。 |
|
||||||
| `signal_symbol` | `'⚡'` | 任意のシグナルに対して表示されるシンボルです。 |
|
| `signal_symbol` | `'⚡'` | 任意のシグナルに対して表示されるシンボルです。 |
|
||||||
| `style` | `'bold red'` | モジュールのスタイルです。 |
|
| `style` | `'bold red'` | モジュールのスタイルです。 |
|
||||||
| `recognize_signal_code` | `true` | 終了ステータスからシグナルへのマッピングを有効にします。 |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | 終了ステータスからシンボルへのマッピングを有効にします。 |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | パイプステータス表示を有効にします。 |
|
| `recognize_signal_code` | `true` | 終了ステータスからシグナルへのマッピングを有効にします。 |
|
||||||
| `pipestatus_separator` | <code>|</code> | パイプラインの各要素を分割するのに使う記号を指定します。フォーマット文字列がサポートされます。 |
|
| `map_symbol` | `false` | 終了ステータスからシンボルへのマッピングを有効にします。 |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | コマンドがパイプラインである場合のモジュールのフォーマットです。 |
|
| `pipestatus` | `false` | パイプステータス表示を有効にします。 |
|
||||||
| `pipestatus_segment_format` | | 指定されている場合、パイプステータスの要素を書式設定する際に `format` の代わりに使われます。 |
|
| `pipestatus_separator` | <code>|</code> | パイプラインの各要素を分割するのに使う記号を指定します。フォーマット文字列がサポートされます。 |
|
||||||
| `disabled` | `true` | `status`モジュールを無効にします。 |
|
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style) '` | コマンドがパイプラインである場合のモジュールのフォーマットです。 |
|
||||||
|
| `pipestatus_segment_format` | | 指定されている場合、パイプステータスの要素を書式設定する際に `format` の代わりに使われます。 |
|
||||||
|
| `disabled` | `true` | `status`モジュールを無効にします。 |
|
||||||
|
|
||||||
### 変数
|
### 変数
|
||||||
|
|
||||||
| 変数 | 設定例 | 説明 |
|
| 変数 | 設定例 | 説明 |
|
||||||
| -------------- | ------- | ------------------------------------------------------- |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | 直前のコマンドの終了ステータス |
|
| status | `127` | 直前のコマンドの終了ステータス |
|
||||||
| hex_status | `0x7F` | 直前のコマンドの終了ステータスを16進数で表記したもの |
|
| hex_status | `0x7F` | 直前のコマンドの終了ステータスを16進数で表記したもの |
|
||||||
| int | `127` | 直前のコマンドの終了ステータス |
|
| int | `127` | 直前のコマンドの終了ステータス |
|
||||||
| common_meaning | `ERROR` | シグナルでない場合、終了ステータスの意味 |
|
| common_meaning | `ERROR` | シグナルでない場合、終了ステータスの意味 |
|
||||||
| signal_number | `9` | シグナルで終了した場合、終了ステータスに対応するシグナル番号 |
|
| signal_number | `9` | シグナルで終了した場合、終了ステータスに対応するシグナル番号 |
|
||||||
| signal_name | `KILL` | シグナルで終了した場合、終了ステータスに対応するシグナル名 |
|
| signal_name | `KILL` | シグナルで終了した場合、終了ステータスに対応するシグナル名 |
|
||||||
| maybe_int | `7` | 対応する意味が見つからない場合にのみ、終了コード番号を含みます。 |
|
| maybe_int | `7` | 対応する意味が見つからない場合にのみ、終了コード番号を含みます。 |
|
||||||
| pipestatus | | パイプラインプログラムの終了ステータスの表示です。pipestatus_format の中でのみ使用できます。 |
|
| pipestatus | | パイプラインプログラムの終了ステータスの表示です。pipestatus_format の中でのみ使用できます。 |
|
||||||
| symbol | | オプション `symbol` の値をミラーする |
|
| symbol | | オプション `symbol` の値をミラーする |
|
||||||
| style\* | | オプション `style` の値をミラーする |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
||||||
|
|
||||||
@ -4264,7 +4271,7 @@ Terraformのバージョンはデフォルトでは表示されません。多
|
|||||||
| version | `v0.12.24` | `terraform` のバージョン |
|
| version | `v0.12.24` | `terraform` のバージョン |
|
||||||
| workspace | `default` | 現在のTerraformワークスペース |
|
| workspace | `default` | 現在のTerraformワークスペース |
|
||||||
| symbol | | オプション `symbol` の値をミラーする |
|
| symbol | | オプション `symbol` の値をミラーする |
|
||||||
| style\* | | オプション `style` の値をミラーします |
|
| style\* | | オプション `style` の値をミラーする |
|
||||||
|
|
||||||
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
||||||
|
|
||||||
@ -4314,10 +4321,10 @@ format = '[🏎💨 $workspace]($style) '
|
|||||||
|
|
||||||
### 変数
|
### 変数
|
||||||
|
|
||||||
| 変数 | 設定例 | 説明 |
|
| 変数 | 設定例 | 説明 |
|
||||||
| --------- | ---------- | ---------------------- |
|
| --------- | ---------- | ----------------------- |
|
||||||
| time | `13:08:10` | 現在時刻 |
|
| time | `13:08:10` | 現在時刻 |
|
||||||
| style\* | | オプション `style` の値をミラーする |
|
| style\* | | オプション `style` の値をミラーします |
|
||||||
|
|
||||||
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
そして、Nushellの設定ファイルの最後に以下を追加してください( `$nu.config-path` を実行してください):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
そして、Nushellの設定ファイルの最後に以下を追記してください (`$nu.config-path` を実行してください):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
注意: Nushell v0.78以降でサポートされています
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -431,14 +425,14 @@ Starshipのさらなるカスタマイズを目指すなら以下を参考にし
|
|||||||
|
|
||||||
[スポンサーになることで](https://github.com/sponsors/starship)このプロジェクトをサポートできます。 名前やロゴがあなたのホームページへのリンクとともに表示されます。
|
[スポンサーになることで](https://github.com/sponsors/starship)このプロジェクトをサポートできます。 名前やロゴがあなたのホームページへのリンクとともに表示されます。
|
||||||
|
|
||||||
## 🔒 Code Signing Policy
|
## 🔒 コード署名のポリシー
|
||||||
|
|
||||||
Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org).
|
[SignPath.io](https://signpath.io)での無料のコード署名が[SignPath Foundation](https://signpath.org)によって提供されています。
|
||||||
|
|
||||||
Code Signing Roles:
|
コード署名のロール:
|
||||||
|
|
||||||
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
- レビュワー:[Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
||||||
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
- Approver、Author:[Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
||||||
|
|
||||||
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
|
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
추후에 변경될 예정입니다. Nushell v0.78 버전 이상에서만 지원됩니다.
|
추후에 변경될 예정입니다. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
다음 내용을 Nushell env 파일 (찾으려면 Nushell에서 `$nu.env-path` 실행) 마지막 부분에 추가하세요:
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
다음 내용을 Nushell 설정 파일 (찾으려면 Nushell에서 `$nu.config-path` 실행) 마지막 부분에 추가하세요:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `기호` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `기호` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `기호` | `'❌'` | The symbol displayed on program error |
|
| `기호` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | 예시 | Description |
|
| Variable | 예시 | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| 기호 | | Mirrors the value of option `symbol` |
|
| 기호 | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
다음 내용을 Nushell env 파일 (찾으려면 Nushell에서 `$nu.env-path` 실행) 마지막 부분에 추가하세요:
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
다음 내용을 Nushell 설정 파일 (찾으려면 Nushell에서 `$nu.config-path` 실행) 마지막 부분에 추가하세요:
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
알림: Nushell v0.78 버전 이상에서만 지원됩니다.
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -12,6 +12,6 @@ This preset changes the format of all the built-in modules to show their segment
|
|||||||
starship preset bracketed-segments -o ~/.config/starship.toml
|
starship preset bracketed-segments -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/bracketed-segments.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/bracketed-segments.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/bracketed-segments.toml
|
<<< @/public/presets/toml/bracketed-segments.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset gruvbox-rainbow -o ~/.config/starship.toml
|
starship preset gruvbox-rainbow -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/gruvbox-rainbow.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/gruvbox-rainbow.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/gruvbox-rainbow.toml
|
<<< @/public/presets/toml/gruvbox-rainbow.toml
|
||||||
|
@ -19,6 +19,6 @@ This is a pseudo minimalist preset inspired by the [geometry](https://github.com
|
|||||||
starship preset jetpack -o ~/.config/starship.toml
|
starship preset jetpack -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/jetpack.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/jetpack.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/jetpack.toml
|
<<< @/public/presets/toml/jetpack.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset nerd-font-symbols -o ~/.config/starship.toml
|
starship preset nerd-font-symbols -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/nerd-font-symbols.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/nerd-font-symbols.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/nerd-font-symbols.toml
|
<<< @/public/presets/toml/nerd-font-symbols.toml
|
||||||
|
@ -12,6 +12,6 @@ If toolset files are identified the toolset icon is displayed. If the toolset is
|
|||||||
starship preset no-empty-icons -o ~/.config/starship.toml
|
starship preset no-empty-icons -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/no-empty-icons.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/no-empty-icons.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/no-empty-icons.toml
|
<<< @/public/presets/toml/no-empty-icons.toml
|
||||||
|
@ -14,6 +14,6 @@ This preset will become the default preset in a future release of starship.
|
|||||||
starship preset no-nerd-font -o ~/.config/starship.toml
|
starship preset no-nerd-font -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/no-nerd-font.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/no-nerd-font.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/no-nerd-font.toml
|
<<< @/public/presets/toml/no-nerd-font.toml
|
||||||
|
@ -12,6 +12,6 @@ This preset hides the version of language runtimes. If you work in containers or
|
|||||||
starship preset no-runtime-versions -o ~/.config/starship.toml
|
starship preset no-runtime-versions -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/no-runtime-versions.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/no-runtime-versions.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/no-runtime-versions.toml
|
<<< @/public/presets/toml/no-runtime-versions.toml
|
||||||
|
@ -16,6 +16,6 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
|
|||||||
starship preset pastel-powerline -o ~/.config/starship.toml
|
starship preset pastel-powerline -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/pastel-powerline.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/pastel-powerline.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/pastel-powerline.toml
|
<<< @/public/presets/toml/pastel-powerline.toml
|
||||||
|
@ -12,6 +12,6 @@ This preset changes the symbols for each module into plain text. Great if you do
|
|||||||
starship preset plain-text-symbols -o ~/.config/starship.toml
|
starship preset plain-text-symbols -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/plain-text-symbols.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/plain-text-symbols.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/plain-text-symbols.toml
|
<<< @/public/presets/toml/plain-text-symbols.toml
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
starship preset pure-preset -o ~/.config/starship.toml
|
starship preset pure-preset -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/pure-preset.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/pure-preset.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/pure-preset.toml
|
<<< @/public/presets/toml/pure-preset.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset tokyo-night -o ~/.config/starship.toml
|
starship preset tokyo-night -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/tokyo-night.toml){download}
|
[클릭하여 TOML 다운로드](/presets/toml/tokyo-night.toml)
|
||||||
|
|
||||||
<<< @/public/presets/toml/tokyo-night.toml
|
<<< @/public/presets/toml/tokyo-night.toml
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@ Note: The right prompt is a single line following the input location. To right a
|
|||||||
|
|
||||||
`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
|
`right_format` is currently supported for the following shells: 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.
|
Opmerking: De [Ble.sh](https://github.com/akinomyoga/ble.sh) framework v0.4 of hoger zou geïnstalleerd moeten zijn om Rechterkant prompt in bash te gebruiken.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
|
|||||||
|
|
||||||
### Terminology
|
### Terminology
|
||||||
|
|
||||||
**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
|
**Module**: A component in the prompt giving information based on contextual information from your OS. Als voorbeeld, de "nodejs" module laat de versie van Node.js zien dat momenteel is geïnstalleerd op jouw systeem, als je huidige folder een Node.js project is.
|
||||||
|
|
||||||
**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
|
**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
|
||||||
|
|
||||||
@ -553,7 +553,7 @@ discharging_symbol = '💦 '
|
|||||||
|
|
||||||
## Buf
|
## Buf
|
||||||
|
|
||||||
The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if the current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file.
|
De `buf` module laat de huidige geïnstalleerde versie van [Buf](https://buf.build) zien. By default, the module is shown if the current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file.
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
@ -589,23 +589,24 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
## Bun
|
## Bun
|
||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
De `bun` module laat de huidige geïnstalleerde versie van de [bun](https://bun.sh) JavaScript runtime zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -752,7 +753,7 @@ vimcmd_symbol = '[V](bold green) '
|
|||||||
|
|
||||||
## CMake
|
## CMake
|
||||||
|
|
||||||
The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). By default the module will be activated if any of the following conditions are met:
|
De `cmake` module laat de huidige geïnstalleerde versie van [CMake](https://cmake.org/) zien. By default the module will be activated if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `CMakeLists.txt` file
|
- The current directory contains a `CMakeLists.txt` file
|
||||||
- The current directory contains a `CMakeCache.txt` file
|
- The current directory contains a `CMakeCache.txt` file
|
||||||
@ -782,7 +783,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
|
|||||||
|
|
||||||
## COBOL / GNUCOBOL
|
## COBOL / GNUCOBOL
|
||||||
|
|
||||||
The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
|
De `cobol` module laat de huidige geïnstalleerde versie van COBOL zien. By default, the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains any files ending in `.cob` or `.COB`
|
- The current directory contains any files ending in `.cob` or `.COB`
|
||||||
- The current directory contains any files ending in `.cbl` or `.CBL`
|
- The current directory contains any files ending in `.cbl` or `.CBL`
|
||||||
@ -928,7 +929,7 @@ format = '[$symbol \[$name\]]($style) '
|
|||||||
|
|
||||||
## Crystal
|
## Crystal
|
||||||
|
|
||||||
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
|
De `crystal` module laat de huidige geïnstalleerde versie van [Crystal](https://crystal-lang.org/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `shard.yml` file
|
- The current directory contains a `shard.yml` file
|
||||||
- The current directory contains a `.cr` file
|
- The current directory contains a `.cr` file
|
||||||
@ -1005,7 +1006,7 @@ format = 'via [D $version](bold bright-green) '
|
|||||||
|
|
||||||
## Dart
|
## Dart
|
||||||
|
|
||||||
The `dart` module shows the currently installed version of [Dart](https://dart.dev/). By default the module will be shown if any of the following conditions are met:
|
De `dart` module laat de huidige geïnstalleerde versie van [Dart](https://dart.dev/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a file with `.dart` extension
|
- The current directory contains a file with `.dart` extension
|
||||||
- The current directory contains a `.dart_tool` directory
|
- The current directory contains a `.dart_tool` directory
|
||||||
@ -1045,7 +1046,7 @@ format = 'via [🔰 $version](bold red) '
|
|||||||
|
|
||||||
## Deno
|
## Deno
|
||||||
|
|
||||||
The `deno` module shows you your currently installed version of [Deno](https://deno.land/). By default the module will be shown if any of the following conditions are met:
|
De `deno` module laat de huidige geïnstalleerde versie van [Deno](https://deno.land/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `deno.json`, `deno.jsonc`, `deno.lock`, `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
|
- The current directory contains a `deno.json`, `deno.jsonc`, `deno.lock`, `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1297,7 +1299,7 @@ heuristic = false
|
|||||||
|
|
||||||
## Elixir
|
## Elixir
|
||||||
|
|
||||||
The `elixir` module shows the currently installed version of [Elixir](https://elixir-lang.org/) and [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
De `elixir` module laat de huidige geïnstalleerde versie van [Elixir](https://elixir-lang.org/) en [Erlang/OTP](https://erlang.org/doc/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `mix.exs` file.
|
- The current directory contains a `mix.exs` file.
|
||||||
|
|
||||||
@ -1336,7 +1338,7 @@ symbol = '🔮 '
|
|||||||
|
|
||||||
## Elm
|
## Elm
|
||||||
|
|
||||||
The `elm` module shows the currently installed version of [Elm](https://elm-lang.org/). By default the module will be shown if any of the following conditions are met:
|
De `elm` module laat de huidige geïnstalleerde versie van [Elm](https://elm-lang.org/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `elm.json` file
|
- The current directory contains a `elm.json` file
|
||||||
- The current directory contains a `elm-package.json` file
|
- The current directory contains a `elm-package.json` file
|
||||||
@ -1449,7 +1451,7 @@ default = 'unknown user'
|
|||||||
|
|
||||||
## Erlang
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
De `erlang` module laat de huidige geïnstalleerde versie van [Erlang/OTP](https://erlang.org/doc/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `rebar.config` file.
|
- The current directory contains a `rebar.config` file.
|
||||||
- The current directory contains a `erlang.mk` file.
|
- The current directory contains a `erlang.mk` file.
|
||||||
@ -1488,7 +1490,7 @@ format = 'via [e $version](bold red) '
|
|||||||
|
|
||||||
## Fennel
|
## Fennel
|
||||||
|
|
||||||
The `fennel` module shows the currently installed version of [Fennel](https://fennel-lang.org). By default the module will be shown if any of the following conditions are met:
|
De `fennel` module laat de huidige geïnstalleerde versie van [Fennel](https://fennel-lang.org) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a file with the `.fnl` extension
|
- The current directory contains a file with the `.fnl` extension
|
||||||
|
|
||||||
@ -1967,7 +1969,7 @@ windows_starship = '/mnt/c/Users/username/scoop/apps/starship/current/starship.e
|
|||||||
|
|
||||||
## Gleam
|
## 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:
|
De `gleam` module laat de huidige geïnstalleerde versie van [Gleam](https://gleam.run/) zien. 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 `gleam.toml` file
|
||||||
- The current directory contains a file with the `.gleam` extension
|
- The current directory contains a file with the `.gleam` extension
|
||||||
@ -2005,7 +2007,7 @@ format = 'via [⭐ $version](bold red) '
|
|||||||
|
|
||||||
## Go
|
## 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:
|
De `golang` module laat de huidige geïnstalleerde versie van [Go](https://golang.org/) zien. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
- The current directory contains a `go.mod` file
|
- The current directory contains a `go.mod` file
|
||||||
- The current directory contains a `go.sum` file
|
- The current directory contains a `go.sum` file
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Example | Description |
|
| Variable | Example | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ Installeer Starship met één van de volgende pakketbeheerders:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Linux</summary>
|
<summary>Linux</summary>
|
||||||
|
|
||||||
Install the latest version for your system:
|
Installeer de meest recente versie voor op jouw systeem:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -sS https://starship.rs/install.sh | sh
|
curl -sS https://starship.rs/install.sh | sh
|
||||||
@ -240,7 +240,7 @@ Als alternatief kan je Starship installeren met een van de volgende pakketbeheer
|
|||||||
<details>
|
<details>
|
||||||
<summary>macOS</summary>
|
<summary>macOS</summary>
|
||||||
|
|
||||||
Install the latest version for your system:
|
Installeer de meest recente versie voor op jouw systeem:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -sS https://starship.rs/install.sh | sh
|
curl -sS https://starship.rs/install.sh | sh
|
||||||
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -440,7 +434,7 @@ Code Signing Roles:
|
|||||||
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
||||||
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
||||||
|
|
||||||
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
|
Dit programma zal geen informatie overdragen naar andere systemen geconnecteerd met het internet tenzij hier specifiek voor gevraagd word door de gebruiker of het persoon dat het aan het installeren of opereren is.
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<br>
|
<br>
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Legg til følgende i slutten av Nushell env filen (finn den ved å kjøre `$nu.env-path` i Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Og legg følgende til slutten av Nushell konfigurasjonen (finn det ved å kjøre `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Example | Description |
|
| Variable | Example | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Legg til følgende i slutten av Nushell env filen (finn den ved å kjøre `$nu.env-path` i Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Og legg følgende til slutten av Nushell konfigurasjonen (finn det ved å kjøre `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Merk: Bare Nushell v0.78+ støttes
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Ten sposób zmieni się w przyszłości. Działa tylko na Nushell v0.78+.
|
Ten sposób zmieni się w przyszłości. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Dodaj następujący kod na koniec twojego pliku env Nushell (możesz go znaleść za pomocą `$nu.env-path` w Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Dodaj następujący kod na koniec Twojego pliku konfiguracyjnego Nushell (możesz go znaleźć uruchamiając `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Zmienne | Example | Description |
|
| Zmienne | Example | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Dodaj następujący kod na koniec twojego pliku env Nushell (możesz go znaleść za pomocą `$nu.env-path` w Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Dodaj następujący kod na koniec Twojego pliku konfiguracyjnego Nushell (możesz go znaleźć uruchamiając `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Uwaga: Obsługiwany jest tylko Nushell w wersji v0.78 wzwyż
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Isto irá mudar no futuro. Somente Nushell v0.78+ é suportado.
|
Isto irá mudar no futuro. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Adicione o seguinte ao final do seu arquivo env do Nushell (enconte-o rodando `$nu.env-path` no Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
O módulo `bun` mostra a versão atualmente instalada do [bun](https://bun.sh) runtime do JavaScript. Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
|
O módulo `bun` mostra a versão atualmente instalada do [bun](https://bun.sh) runtime do JavaScript. Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
|
||||||
|
|
||||||
|
- O diretório atual conter um arquivo `bun.lock`
|
||||||
- O diretório atual conter um arquivo `bun.lockb`
|
- O diretório atual conter um arquivo `bun.lockb`
|
||||||
- O diretório atual conter um arquivo `bunfig.toml`
|
- O diretório atual conter um arquivo `bunfig.toml`
|
||||||
|
|
||||||
### Opções
|
### Opções
|
||||||
|
|
||||||
| Opções | Padrão | Descrição |
|
| Opções | Padrão | Descrição |
|
||||||
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
|
| `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` |
|
| `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_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_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Quais nomes de arquivos devem ativar este módulo. |
|
||||||
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
|
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
|
||||||
| `style` | `'bold red'` | O estilo do módulo. |
|
| `style` | `'bold red'` | O estilo do módulo. |
|
||||||
| `disabled` | `false` | Desativa o módulo `bun`. |
|
| `disabled` | `false` | Desativa o módulo `bun`. |
|
||||||
|
|
||||||
### Variáveis
|
### Variáveis
|
||||||
|
|
||||||
@ -1175,6 +1176,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
|
| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
|
||||||
| `detect_files` | `['.envrc']` | Quais nomes de arquivos devem ativar este módulo. |
|
| `detect_files` | `['.envrc']` | Quais nomes de arquivos devem ativar este módulo. |
|
||||||
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
|
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
|
||||||
|
| `detect_env_vars` | `['DIRENV_FILE']` | Quais variáveis de ambiente devem ativar este módulo. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `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. |
|
| `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. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,23 +4097,25 @@ Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para
|
|||||||
|
|
||||||
### Opções
|
### Opções
|
||||||
|
|
||||||
| Opções | Padrão | Descrição |
|
| Opções | Padrão | Descrição |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | O formato do módulo |
|
| `format` | `'[$symbol$status]($style) '` | O formato do módulo |
|
||||||
| `symbol` | `'❌'` | O simbolo exibido no erro de programa |
|
| `symbol` | `'❌'` | O simbolo exibido no erro de programa |
|
||||||
| `success_symbol` | `''` | O simbolo exibido no sucesso de programa |
|
| `success_symbol` | `''` | O simbolo exibido no sucesso de programa |
|
||||||
| `not_executable_symbol` | `'🚫'` | O simbolo exibido quando o arquivo não é executável |
|
| `not_executable_symbol` | `'🚫'` | O simbolo exibido quando o arquivo não é executável |
|
||||||
| `not_found_symbol` | `'🔍'` | O simbolo exibido quando o comando não é encontrado |
|
| `not_found_symbol` | `'🔍'` | O simbolo exibido quando o comando não é encontrado |
|
||||||
| `sigint_symbol` | `'🧱'` | O simbolo exibido no SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | O simbolo exibido no SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | O simbolo exibido em qualquer sinal |
|
| `signal_symbol` | `'⚡'` | O simbolo exibido em qualquer sinal |
|
||||||
| `style` | `'bold red'` | O estilo do módulo. |
|
| `style` | `'bold red'` | O estilo do módulo. |
|
||||||
| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Habilita o relatório de pipestatus |
|
| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída |
|
||||||
| `pipestatus_separator` | <code>|</code> | O símbolo usado para separar segmentos de pipestatus (suporta formatação) |
|
| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | O formato do módulo quando o comando é um pipeline |
|
| `pipestatus` | `false` | Habilita o relatório de pipestatus |
|
||||||
| `pipestatus_segment_format` | | Quando especificado, substitui o `format` quando ha formatação de segmentos pipestatus |
|
| `pipestatus_separator` | <code>|</code> | O símbolo usado para separar segmentos de pipestatus (suporta formatação) |
|
||||||
| `disabled` | `true` | Desabilita o módulo `status`. |
|
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style) '` | O formato do módulo quando o comando é um pipeline |
|
||||||
|
| `pipestatus_segment_format` | | Quando especificado, substitui o `format` quando ha formatação de segmentos pipestatus |
|
||||||
|
| `disabled` | `true` | Desabilita o módulo `status`. |
|
||||||
|
|
||||||
### Variáveis
|
### Variáveis
|
||||||
|
|
||||||
@ -4123,7 +4130,7 @@ Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para
|
|||||||
| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado |
|
| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado |
|
||||||
| pipestatus | | Exibição do pipeline de programas com os códigos de saída, este é apenas disponível no pipestatus_format |
|
| pipestatus | | Exibição do pipeline de programas com os códigos de saída, este é apenas disponível no pipestatus_format |
|
||||||
| symbol | | Espelha o valor da opção `symbol` |
|
| symbol | | Espelha o valor da opção `symbol` |
|
||||||
| style\* | | Espelha o valor da opção `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: Esta variável só pode ser usada como parte de uma string de estilo
|
*: Esta variável só pode ser usada como parte de uma string de estilo
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Adicione o seguinte ao final do seu arquivo env do Nushell (enconte-o rodando `$nu.env-path` no Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Nota: Somente o Nushell v0.78+ é suportado
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | The style for the module. |
|
| `style` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | The style for the module. |
|
| `style` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Example | Description |
|
| Variable | Example | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
layout: home
|
layout: дом
|
||||||
hero:
|
hero:
|
||||||
image: /logo.svg
|
image: /logo.svg
|
||||||
text:
|
text:
|
||||||
tagline: Минималистичное, быстрое и бесконечно настраиваемое приглашение командной строки для любой оболочки!
|
tagline: Минималистичное, быстрое и бесконечно настраиваемое приглашение командной строки для любой оболочки!
|
||||||
actions:
|
actions:
|
||||||
-
|
-
|
||||||
theme: brand
|
theme: бренд
|
||||||
text: Начало работы →
|
text: Начало работы →
|
||||||
link: ./guide/
|
link: ./guide/
|
||||||
features:
|
features:
|
||||||
@ -138,7 +138,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Only elvish v0.18 or higher is supported.
|
Только elvish v0.18 или выше поддерживается.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Поддерживается только Nushell v0.78+.
|
Это изменится в будущем. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -197,7 +191,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
#### Cmd
|
#### Cmd
|
||||||
|
|
||||||
You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
|
Вам нужно использовать [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) с помощью Cmd. Добавьте следующий файл `starship.lua` и поместите этот файл в каталог Clink скриптов:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- starship.lua
|
-- starship.lua
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
|
|
||||||
## TransientPrompt для PowerShell
|
## TransientPrompt для PowerShell
|
||||||
|
|
||||||
It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `Enable-TransientPrompt` in the shell session. To make it permanent, put this statement in your `$PROFILE`. Transience can be disabled on-the-fly with `Disable-TransientPrompt`.
|
Можно заменить предыдущий выведенный промпт на пользовательскую строку. Это полезно в тех случаях, когда весь промпт не всегда нужен. Чтобы включить, запустите `Enable-TransientPrompt` в сеансе оболочки. Чтобы включить его глобально, вставьте это в ваш `$PROFILE` Переход может быть отключён на лету с помощью `Disable-TransientPrompt`.
|
||||||
|
|
||||||
By default, the left side of input gets replaced with `>`. To customize this, define a new function called `Invoke-Starship-TransientFunction`. For example, to display Starship's `character` module here, you would do
|
По умолчанию, левая сторона ввода заменяется на `>`. Для настройки определите новую функцию под названием `Invoke-Starship-TransientFunction`. Например, чтобы отобразить модуль Starship `character`, вы должны выполнить
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
function Invoke-Starship-TransientFunction {
|
function Invoke-Starship-TransientFunction {
|
||||||
@ -24,17 +24,17 @@ Invoke-Expression (&starship init powershell)
|
|||||||
Enable-TransientPrompt
|
Enable-TransientPrompt
|
||||||
```
|
```
|
||||||
|
|
||||||
## TransientPrompt and TransientRightPrompt in Cmd
|
## TransientPrompt и TransientRightPrompt в Cmd
|
||||||
|
|
||||||
Clink 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, run `clink set prompt.transient <value>` where \<value\> can be one of:
|
Clink позволяет заменить предыдущий выведенный промпт на пользовательские строки. Это полезно в тех случаях, когда весь промпт не всегда нужен. Чтобы включить это, запустите `clink set prompt.transient <value>`, где \<value\> может быть одним из
|
||||||
|
|
||||||
- `always`: always replace the previous prompt
|
- `always`: всегда заменять предыдущий промпт
|
||||||
- `same_dir`: replace the previous prompt only if the working directory is same
|
- `same_dir`: заменять предыдущий промпт только если рабочая директория та же
|
||||||
- `off`: do not replace the prompt (i.e. turn off transience)
|
- `off`: не заменять промпт (т.е. выключить переход)
|
||||||
|
|
||||||
You need to do this only once. Make the following changes to your `starship.lua` to customize what gets displayed on the left and on the right:
|
Вы должны сделать это только один раз. Внесите следующие изменения в ваш `starship.lua`, чтобы настроить, что отображается слева и справа:
|
||||||
|
|
||||||
- By default, the left side of input gets replaced with `>`. To customize this, define a new function called `starship_transient_prompt_func`. This function receives the current prompt as a string that you can utilize. For example, to display Starship's `character` module here, you would do
|
- По умолчанию, левая сторона ввода заменяется на `>`. Чтобы настроить это, определите новую функцию под названием `starship_transient_prompt_func`. Эта функция получает текущий промпт как строку, которую вы можете использовать. Например, чтобы отобразить здесь модуль Starship `character`, вы должны выполнить
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
function starship_transient_prompt_func(prompt)
|
function starship_transient_prompt_func(prompt)
|
||||||
@ -45,7 +45,7 @@ end
|
|||||||
load(io.popen('starship init cmd'):read("*a"))()
|
load(io.popen('starship init cmd'):read("*a"))()
|
||||||
```
|
```
|
||||||
|
|
||||||
- By default, the right side of input is empty. To customize this, define a new function called `starship_transient_rprompt_func`. This function receives the current prompt as a string that you can utilize. For example, to display the time at which the last command was started here, you would do
|
- По умолчанию, правая сторона ввода пуста. Для настройки определите новую функцию под названием `starship_transient_rprompt_func`. Эта функция получает текущий промпт как строку, которую вы можете использовать. Например, чтобы отобразить время, когда здесь была запущена последняя команда, вы должны выполнить
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
function starship_transient_rprompt_func(prompt)
|
function starship_transient_rprompt_func(prompt)
|
||||||
@ -54,13 +54,13 @@ end
|
|||||||
load(io.popen('starship init cmd'):read("*a"))()
|
load(io.popen('starship init cmd'):read("*a"))()
|
||||||
```
|
```
|
||||||
|
|
||||||
## TransientPrompt and TransientRightPrompt in Fish
|
## TransientPrompt и TransientRightPrompt в Fish
|
||||||
|
|
||||||
It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. 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, временный промпт печатается только в том случае, если командная строка не пустая и синтаксически верна.
|
||||||
|
|
||||||
- By default, the left side of input gets replaced with a bold-green `❯`. To customize this, define a new function called `starship_transient_prompt_func`. For example, to display Starship's `character` module here, you would do
|
- По умолчанию, левая сторона ввода заменяется жирным зеленым `❯`. Для настройки определите новую функцию под названием `starship_transient_prompt_func`. Например, чтобы отобразить здесь модуль Starship `character`, вы должны выполнить
|
||||||
|
|
||||||
```fish
|
```fish
|
||||||
function starship_transient_prompt_func
|
function starship_transient_prompt_func
|
||||||
@ -70,7 +70,7 @@ starship init fish | source
|
|||||||
enable_transience
|
enable_transience
|
||||||
```
|
```
|
||||||
|
|
||||||
- By default, the right side of input is empty. To customize this, define a new function called `starship_transient_rprompt_func`. For example, to display the time at which the last command was started here, you would do
|
- По умолчанию, правая сторона ввода пуста. Для настройки определите новую функцию под названием `starship_transient_rprompt_func`. Например, чтобы отобразить время, когда здесь была запущена последняя команда, вы должны выполнить
|
||||||
|
|
||||||
```fish
|
```fish
|
||||||
function starship_transient_rprompt_func
|
function starship_transient_rprompt_func
|
||||||
@ -80,11 +80,13 @@ starship init fish | source
|
|||||||
enable_transience
|
enable_transience
|
||||||
```
|
```
|
||||||
|
|
||||||
## TransientPrompt and TransientRightPrompt in Bash
|
## 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. 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=<value>`:
|
Фреймворк [Ble.sh](https://github.com/akinomyoga/ble.sh) в версии 0.4 или выше позволяет заменить выведенный ранее промпт, пользовательскими строками. Это полезно в тех случаях, когда весть промпт не всегда нужен. Чтобы включить это, добавьте в `~/.bashrc` `bleopt prompt_ps1_transient=<value>`:
|
||||||
|
|
||||||
The \<value\> 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 \<value\>, the prompt specified by `PS1` is erased on leaving the current command line. If \<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 \<value\> and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
|
` здесь - это разделённый двоеточиями список, состоящий из <value\>always</1>, <1>same-dir</1> и <1>trim</1>.
|
||||||
|
Когда <value\>prompt_ps1_final</0> пуст, а опция <0>prompt_ps1_transient</0> - не пустой \<code>, промпт, указанный <0>PS1</0> удаляется при выходе из текущей командной строки.
|
||||||
|
Если \<value\> содержит поле <code>trim`, сохраняется только последняя строка многострочного `PS1`, а остальные линии стираются. Иначе командная строка будет перерисована, будто `PS1=` установлено. When a field `same-dir` is contained in \<value\> 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 `~/.blerc` (or in `~/.config/blesh/init.sh`) 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:
|
||||||
|
|
||||||
@ -94,7 +96,7 @@ Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`)
|
|||||||
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
|
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. Например, чтобы отобразить время, когда здесь была запущена последняя команда, вы должны выполнить
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bleopt prompt_rps1_final='$(starship module time)'
|
bleopt prompt_rps1_final='$(starship module time)'
|
||||||
@ -253,9 +255,9 @@ Some shells support a continuation prompt along with the normal prompt. This pro
|
|||||||
|
|
||||||
Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `'[∙](bright-black) '`.
|
Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `'[∙](bright-black) '`.
|
||||||
|
|
||||||
Note: `continuation_prompt` should be set to a literal string without any variables.
|
Примечание: `continuation_prompt` должно быть изменено на строку без каких-либо переменных.
|
||||||
|
|
||||||
Note: Continuation prompts are only available in the following shells:
|
Примечание: Дальнейшие подсказки доступны только в следующих оболочках:
|
||||||
|
|
||||||
- `bash`
|
- `bash`
|
||||||
- `zsh`
|
- `zsh`
|
||||||
@ -266,8 +268,8 @@ Note: Continuation prompts are only available in the following shells:
|
|||||||
```toml
|
```toml
|
||||||
# ~/.config/starship.toml
|
# ~/.config/starship.toml
|
||||||
|
|
||||||
# A continuation prompt that displays two filled-in arrows
|
# Запрос на продолжение, в котором отображаются две заполненные стрелки
|
||||||
continuation_prompt = '▶▶ '
|
continuation_prompt = '▶️▶️ '
|
||||||
```
|
```
|
||||||
|
|
||||||
## Строки стиля
|
## Строки стиля
|
||||||
@ -278,22 +280,22 @@ continuation_prompt = '▶▶ '
|
|||||||
- `italic`
|
- `italic`
|
||||||
- `underline`
|
- `underline`
|
||||||
- `dimmed`
|
- `dimmed`
|
||||||
- `inverted`
|
- `инвертировано`
|
||||||
- `blink`
|
- `мерцать`
|
||||||
- `hidden`
|
- `скрытый`
|
||||||
- `strikethrough`
|
- `зачеркнуто`
|
||||||
- `bg:<color>`
|
- `bg:<color>`
|
||||||
- `fg:<color>`
|
- `fg:<color>`
|
||||||
- `<color>`
|
- `<color>`
|
||||||
- `none`
|
- `none`
|
||||||
|
|
||||||
где `<color>` является цветовым спецификатором (обсуждается ниже). `fg:<color>` and `<color>` currently do the same thing, though this may change in the future. `<color>` can also be set to `prev_fg` or `prev_bg` which evaluates to the previous item's foreground or background color respectively if available or `none` otherwise. `inverted` swaps the background and foreground colors. Порядок слов в строке не имеет значения.
|
где `<color>` является цветовым спецификатором (обсуждается ниже). `fg:<color>` и `<color>` в настоящее время выполняет то же самое, хотя в будущем это может измениться. `<color>` также может быть установлено значение `prev_fg` или `prev_bg`, которое соответствует цвету переднего плана или фона предыдущего элемента соответственно, если доступно, или `нет` в противном случае. `инвертировано` меняет местами цвета фона и переднего плана. Порядок слов в строке не имеет значения.
|
||||||
|
|
||||||
Токен `none` переопределяет все остальные токены в строке, если он не является частью спецификатора `bg:` так, например, `fg:red none fg:blue` все равно создаст строку без стиля. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. Использование `none` в сочетании с другими токенами может стать ошибкой в будущем.
|
Токен `none` переопределяет все остальные токены в строке, если он не является частью спецификатора `bg:` так, например, `fg:red none fg:blue` все равно создаст строку без стиля. `bg:none` устанавливает цвет по умолчанию на цвет `fg:red bg:none` эквивалентно `red` или `fg:red` и `bg:green fg:red bg:none` также эквивалентно `fg:red` или `red`. Использование `none` в сочетании с другими токенами может стать ошибкой в будущем.
|
||||||
|
|
||||||
Цветовой спецификатор может быть одним из следующих:
|
Цветовой спецификатор может быть одним из следующих:
|
||||||
|
|
||||||
- Один из стандартных цветов терминалов: `black`, `red`, `green`, `blue`, `gellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
|
- Один из стандартных цветов терминалов: `black`, `red`, `green`, `blue`, `gellow`, `purple`, `cyan`, `white`. При желании вы можете добавить к ним префикс `bright-`, чтобы получить версию bright (например, `bright-white`).
|
||||||
- `#`, за которой следует шестизначное шестнадцатеричное число. Это определяет [шестнадцатеричный код цвета RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
|
- `#`, за которой следует шестизначное шестнадцатеричное число. Это определяет [шестнадцатеричный код цвета RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
|
||||||
- Число от 0 до 255. Это определяет [8-битный код цвета ANSI](https://i.stack.imgur.com/KTSQa.png).
|
- Число от 0 до 255. Это определяет [8-битный код цвета ANSI](https://i.stack.imgur.com/KTSQa.png).
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- Текущий каталог содержит файл `bun.lock`
|
||||||
- Текущий каталог содержит файл `bun.lockb`
|
- Текущий каталог содержит файл `bun.lockb`
|
||||||
- Текущий каталог содержит файл `bunfig.toml`
|
- Текущий каталог содержит файл `bunfig.toml`
|
||||||
|
|
||||||
### Опции
|
### Опции
|
||||||
|
|
||||||
| Параметр | По умолчанию | Описание |
|
| Параметр | По умолчанию | Описание |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
|
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | Стиль модуля. |
|
| `style` | `'bold red'` | Стиль модуля. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Переменные
|
### Переменные
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Опции
|
### Опции
|
||||||
|
|
||||||
| Параметр | По умолчанию | Описание |
|
| Параметр | По умолчанию | Описание |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Формат модуля. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Формат модуля. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | Стиль модуля. |
|
| `style` | `'bold orange'` | Стиль модуля. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Переменные
|
### Переменные
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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.
|
||||||
|
|
||||||
### Опции
|
### Опции
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ The `status` module displays the exit code of the previous command. If $success_
|
|||||||
|
|
||||||
### Опции
|
### Опции
|
||||||
|
|
||||||
| Параметр | По умолчанию | Описание |
|
| Параметр | По умолчанию | Описание |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | Стиль модуля. |
|
| `style` | `'bold red'` | Стиль модуля. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Переменные
|
### Переменные
|
||||||
|
|
||||||
| Переменная | Пример | Описание |
|
| Переменная | Пример | Описание |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Отражает значение параметра `symbol` |
|
| symbol | | Отражает значение параметра `symbol` |
|
||||||
| style\* | | Отражает значение параметра `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: Эта переменная может использоваться только в качестве части строки style
|
*: Эта переменная может использоваться только в качестве части строки style
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
Автодополнение команд обеспечивается выбранной вами оболочкой. В данном случае, демо было выполнено с [Fish Shell](https://fishshell.com/), которая обеспечивает дополнения по умолчанию. Если вы используете Z Shell (zsh), я бы посоветовал взглянуть на [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
|
Автодополнение команд обеспечивается выбранной вами оболочкой. В данном случае, демо было выполнено с [Fish Shell](https://fishshell.com/), которая обеспечивает дополнения по умолчанию. Если вы используете Z Shell (zsh), я бы посоветовал взглянуть на [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
|
||||||
|
|
||||||
## Do top level `format` and `<module>.disabled` do the same thing?
|
## Выполните `format` верхнего уровня и `<module>.disabled` одно и то же?
|
||||||
|
|
||||||
Да, они могут быть использованы для отключения модулей в подсказке. Если всё, что вы хотите сделать - это отключить модули, `<module>.disabled` - предпочитаемый способ сделать это по следующим причинам:
|
Да, они могут быть использованы для отключения модулей в подсказке. Если всё, что вы хотите сделать - это отключить модули, `<module>.disabled` - предпочитаемый способ сделать это по следующим причинам:
|
||||||
|
|
||||||
- Disabling modules is more explicit than omitting them from the top level `format`
|
- Отключение модулей является более явным, чем их исключение из `format` верхнего уровня
|
||||||
- Новосозданные модули будут добавлены в подсказку по мере обновления Starship
|
- Новосозданные модули будут добавлены в подсказку по мере обновления Starship
|
||||||
|
|
||||||
## Доки говорят, что Starship поддерживается на всех оболочках *(cross-shell)*. Почему моя любимая оболочка не поддерживается?
|
## Доки говорят, что Starship поддерживается на всех оболочках *(cross-shell)*. Почему моя любимая оболочка не поддерживается?
|
||||||
@ -34,7 +34,7 @@ STATUS=$?
|
|||||||
# Get the number of jobs running.
|
# Get the number of jobs running.
|
||||||
NUM_JOBS=$(jobs -p | wc -l)
|
NUM_JOBS=$(jobs -p | wc -l)
|
||||||
|
|
||||||
# Set the prompt to the output of `starship prompt`
|
# Установите запрос на вывод `starship prompt`
|
||||||
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
|
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -66,21 +66,21 @@ Starship выполняет различные команды, чтобы пол
|
|||||||
|
|
||||||
## Starship делает что-то неожиданное, как я могу отладить его?
|
## 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` env var. Эти логи могут быть очень подробными, поэтому часто полезно использовать команду `module` если вы пытаетесь отладить тот или иной модуль, например, если вы пытаетесь отладить модуль `rust`, вы можете выполнить следующую команду, чтобы получить логи и вывод трассировки из модуля.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
env STARSHIP_LOG=trace starship module rust
|
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
|
```sh
|
||||||
env STARSHIP_LOG=trace starship timings
|
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
|
```sh
|
||||||
starship bug-report
|
starship bug-report
|
||||||
@ -90,8 +90,8 @@ starship bug-report
|
|||||||
|
|
||||||
Наиболее распространенной причиной этого является неправильная конфигурация системы. В частности, некоторые Linux дистрибутивы не предоставляют поддержку шрифта из коробки. Необходимо убедиться, что:
|
Наиболее распространенной причиной этого является неправильная конфигурация системы. В частности, некоторые Linux дистрибутивы не предоставляют поддержку шрифта из коробки. Необходимо убедиться, что:
|
||||||
|
|
||||||
- Your locale is set to a UTF-8 value, like `de_DE.UTF-8` or `ja_JP.UTF-8`. If `LC_ALL` is not a UTF-8 value, [you will need to change it](https://www.tecmint.com/set-system-locales-in-linux/).
|
- Для вашего языка задано значение UTF-8, например `de_DE.UTF-8` или `ja_JP.UTF-8`. Если `LC_ALL` не является значением UTF-8, [вам нужно будет изменить его](https://www.tecmint.com/set-system-locales-in-linux/).
|
||||||
- You have an emoji font installed. Most systems come with an emoji font by default, but some (notably Arch Linux) do not. You can usually install one through your system's package manager--[noto emoji](https://www.google.com/get/noto/help/emoji/) is a popular choice.
|
- У вас установлен шрифт emoji. В большинстве систем по умолчанию используется шрифт emoji, но в некоторых (например, в Arch Linux) его нет. Обычно вы можете установить его через менеджер пакетов вашей системы--[noto emoji](https://www.google.com/get/noto/help/emoji/) является популярным выбором.
|
||||||
- Вы используете [Nerd Font](https://www.nerdfonts.com/).
|
- Вы используете [Nerd Font](https://www.nerdfonts.com/).
|
||||||
|
|
||||||
Для тестирования системы запустите следующие команды в терминале:
|
Для тестирования системы запустите следующие команды в терминале:
|
||||||
@ -107,23 +107,23 @@ echo -e "\xee\x82\xa0"
|
|||||||
|
|
||||||
## Как удалить Starship?
|
## Как удалить Starship?
|
||||||
|
|
||||||
Starship is just as easy to uninstall as it is to install in the first place.
|
Starship так же прост в удалении, как и установка его в первую очередь.
|
||||||
|
|
||||||
1. Remove any lines in your shell config (e.g. `~/.bashrc`) used to initialize Starship.
|
1. Удалите все строки в конфигурации вашей оболочки (например, `~/.bashrc`), используемые для инициализации Starship.
|
||||||
1. Delete the Starship binary.
|
1. Удалите бинарный файл Starship.
|
||||||
|
|
||||||
If Starship was installed using a package manager, please refer to their docs for uninstallation instructions.
|
Если Starship был установлен с помощью менеджера пакетов, пожалуйста, обратитесь к их документации для получения инструкций по установке.
|
||||||
|
|
||||||
If Starship was installed using the install script, the following command will delete the binary:
|
Если Starship был установлен с помощью сценария установки, следующая команда удалит бинарный файл:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Locate and delete the starship binary
|
# Найти и удалить бинарный файл starship
|
||||||
sh -c 'rm "$(command -v 'starship')"'
|
sh -c 'rm "$(command -v 'starship')"'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Как Starship без `sudo`?
|
## Как Starship без `sudo`?
|
||||||
|
|
||||||
Скрипт установки (`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`.
|
Скрипт установки (`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`.
|
||||||
|
|
||||||
Для неинтерактивной установки Starship не забудьте добавить опцию `-y` чтобы пропустить подтверждение. Проверьте исходник установочного скрипта, чтобы получить список всех поддерживаемых параметров установки.
|
Для неинтерактивной установки Starship не забудьте добавить опцию `-y` чтобы пропустить подтверждение. Проверьте исходник установочного скрипта, чтобы получить список всех поддерживаемых параметров установки.
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ curl -sS https://starship.rs/install.sh | sh
|
|||||||
<details>
|
<details>
|
||||||
<summary>Windows</summary>
|
<summary>Windows</summary>
|
||||||
|
|
||||||
Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
|
Установите последнюю версию для вашей системы с помощью MSI-installers из [раздела релизов](https://github.com/starship/starship/releases/latest).
|
||||||
|
|
||||||
Установите Starship с помощью любого из следующих менеджеров пакетов:
|
Установите Starship с помощью любого из следующих менеджеров пакетов:
|
||||||
|
|
||||||
@ -330,7 +330,7 @@ starship init fish | source
|
|||||||
Добавьте следующее в конец `~/.config/ion/initrc`:
|
Добавьте следующее в конец `~/.config/ion/initrc`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
eval $(starship init ion)
|
eval $(starhip init ion)
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@ -338,27 +338,21 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>PowerShell</summary>
|
<summary>PowerShell</summary>
|
||||||
|
|
||||||
Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`):
|
Добавьте следующее в конец вашей конфигурации PowerShell (найдите его, запустив `$PROFILE`):
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
Invoke-Expression (&starship init powershell)
|
Invoke-Expression (&starship init powershell)
|
||||||
@ -423,24 +417,24 @@ eval "$(starship init zsh)"
|
|||||||
|
|
||||||
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – ZSH промпт для космонавтов.
|
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – ZSH промпт для космонавтов.
|
||||||
|
|
||||||
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript.
|
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Кросс-оболочка тема robbyrussell написанная на JavaScript.
|
||||||
|
|
||||||
- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
|
- **[reujab/silver](https://github.com/reujab/silver)** – Кросс-оболочка командной строки настраиваемая как мощная строка с иконками.
|
||||||
|
|
||||||
## ❤️ Спонсоры
|
## ❤️ Спонсоры
|
||||||
|
|
||||||
Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт.
|
Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт.
|
||||||
|
|
||||||
## 🔒 Code Signing Policy
|
## 🔒 Политика подписания кода
|
||||||
|
|
||||||
Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org).
|
Бесплатная подпись кода, предоставляемая [SignPath.io](https://signpath.io), сертификат от [SignPath Foundation](https://signpath.org).
|
||||||
|
|
||||||
Code Signing Roles:
|
Роли подписания кодов:
|
||||||
|
|
||||||
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
- Рецензенты: [Астронавты](https://github.com/orgs/starship/teams/astronauts)
|
||||||
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
- Утверждающие лица и авторы: [Контролирующие миссию](https://github.com/orgs/starship/teams/mission-control)
|
||||||
|
|
||||||
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
|
Эта программа не будет передавать какую-либо информацию в другие сетевые системы без специального запроса пользователя или лица, устанавливающего или эксплуатирующего ее.
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<br>
|
<br>
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
# Продвинутая установка
|
# Продвинутая установка
|
||||||
|
|
||||||
To install starship, you need to do two things:
|
Чтобы установить Starship, нужно выполнить две вещи:
|
||||||
|
|
||||||
1. Get the **starship** binary onto your computer
|
1. Получить бинарный файл **starship** на вашем компьютере
|
||||||
1. Tell your shell to use the starship binary as its prompt by modifying its init scripts
|
1. Попросите оболочку использовать бинарный файл starship в качестве его промпта, изменив его сценарии инициализации
|
||||||
|
|
||||||
For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed.
|
Для большинства пользователей отлично подходят инструкции на [главной странице](../guide/#🚀-installation). Тем не менее, для некоторых специализированных платформ, нужны различные инструкции.
|
||||||
|
|
||||||
There are so many platforms out there that they didn't fit into the main README.md file, so here are some installation instructions for other platforms from the community. Is yours not here? Please do add it here if you figure it out!
|
Есть так много платформ, что они не вписываются в главный README.md файл, поэтому здесь есть некоторые инструкции по установке для других платформ от сообщества. Здесь нет вашей? Пожалуйста, добавьте её сюда, если сможешь разобраться в этом!
|
||||||
|
|
||||||
## [Chocolatey](https://chocolatey.org)
|
## [Chocolatey](https://chocolatey.org)
|
||||||
|
|
||||||
### Обязательные требования
|
### Обязательные требования
|
||||||
|
|
||||||
Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
|
Зайдите на [страницу установки Chocolatey](https://chocolatey.org/install) и следуйте инструкциям по установке Chocolatey.
|
||||||
|
|
||||||
### Установка
|
### Установка
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
|
|||||||
|
|
||||||
### Установка
|
### Установка
|
||||||
|
|
||||||
On Funtoo Linux, starship can be installed from [core-kit](https://github.com/funtoo/core-kit/tree/1.4-release/app-shells/starship) via Portage:
|
На Funtoo Linux, starship может быть установлен из <0>core-kit</0> с помощью Portage:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
emerge app-shells/starship
|
emerge app-shells/starship
|
||||||
@ -47,17 +47,17 @@ emerge app-shells/starship
|
|||||||
|
|
||||||
## [Nix](https://wiki.nixos.org/wiki/Nix)
|
## [Nix](https://wiki.nixos.org/wiki/Nix)
|
||||||
|
|
||||||
### Getting the Binary
|
### Получение бинарного файла
|
||||||
|
|
||||||
#### Imperatively
|
#### Императивно
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nix-env -iA nixos.starship
|
nix-env -iA nixos.starship
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Declarative, single user, via [home-manager](https://github.com/nix-community/home-manager)
|
#### Декларативно, для одного пользователя, используя [home-manager](https://github.com/nix-community/home-manager)
|
||||||
|
|
||||||
Enable the `programs.starship` module in your `home.nix` file, and add your settings
|
Включите модуль <0>programs.starship</0> в ваш файл <0>home.nix</0> и добавьте ваши настройки
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
@ -78,15 +78,15 @@ Enable the `programs.starship` module in your `home.nix` file, and add your sett
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
then run
|
затем запустите
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
home-manager switch
|
home-manager switch
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Declarative, system-wide, with NixOS
|
#### Декларативно, системно, с NixOS
|
||||||
|
|
||||||
Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
|
Добавьте `pkgs.starship` в `environment.systemPackages` в вашем `configuration.nix`, затем запустите
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch
|
sudo nixos-rebuild switch
|
||||||
|
@ -74,4 +74,4 @@
|
|||||||
|
|
||||||
Это псевдоминималистичный пресет, вдохновленный приглашениями командной оболочки [geometry](https://github.com/geometry-zsh/geometry) и [spaceship](https://github.com/spaceship-prompt/spaceship-prompt).
|
Это псевдоминималистичный пресет, вдохновленный приглашениями командной оболочки [geometry](https://github.com/geometry-zsh/geometry) и [spaceship](https://github.com/spaceship-prompt/spaceship-prompt).
|
||||||
|
|
||||||
[![Скриншот пресета Jetpack](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
|
[![Скриншот пресета Jetpack](/presets/img/jetpack.png "Нажмите, чтобы просмотреть пресет Jetpack")](./jetpack)
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
starship preset bracketed-segments -o ~/.config/starship.toml
|
starship preset bracketed-segments -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/bracketed-segments.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/bracketed-segments.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/bracketed-segments.toml
|
<<< @/public/presets/toml/bracketed-segments.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset gruvbox-rainbow -o ~/.config/starship.toml
|
starship preset gruvbox-rainbow -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/gruvbox-rainbow.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/gruvbox-rainbow.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/gruvbox-rainbow.toml
|
<<< @/public/presets/toml/gruvbox-rainbow.toml
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
starship preset jetpack -o ~/.config/starship.toml
|
starship preset jetpack -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/jetpack.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/jetpack.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/jetpack.toml
|
<<< @/public/presets/toml/jetpack.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset nerd-font-symbols -o ~/.config/starship.toml
|
starship preset nerd-font-symbols -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/nerd-font-symbols.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/nerd-font-symbols.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/nerd-font-symbols.toml
|
<<< @/public/presets/toml/nerd-font-symbols.toml
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
starship preset no-empty-icons -o ~/.config/starship.toml
|
starship preset no-empty-icons -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/no-empty-icons.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/no-empty-icons.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/no-empty-icons.toml
|
<<< @/public/presets/toml/no-empty-icons.toml
|
||||||
|
@ -14,6 +14,6 @@
|
|||||||
starship preset no-nerd-font -o ~/.config/starship.toml
|
starship preset no-nerd-font -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/no-nerd-font.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/no-nerd-font.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/no-nerd-font.toml
|
<<< @/public/presets/toml/no-nerd-font.toml
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
starship preset no-runtime-versions -o ~/.config/starship.toml
|
starship preset no-runtime-versions -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/no-runtime-versions.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/no-runtime-versions.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/no-runtime-versions.toml
|
<<< @/public/presets/toml/no-runtime-versions.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset pastel-powerline -o ~/.config/starship.toml
|
starship preset pastel-powerline -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/pastel-powerline.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/pastel-powerline.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/pastel-powerline.toml
|
<<< @/public/presets/toml/pastel-powerline.toml
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
starship preset plain-text-symbols -o ~/.config/starship.toml
|
starship preset plain-text-symbols -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/plain-text-symbols.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/plain-text-symbols.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/plain-text-symbols.toml
|
<<< @/public/presets/toml/plain-text-symbols.toml
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
starship preset pure-preset -o ~/.config/starship.toml
|
starship preset pure-preset -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/pure-preset.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/pure-preset.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/pure-preset.toml
|
<<< @/public/presets/toml/pure-preset.toml
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
starship preset tokyo-night -o ~/.config/starship.toml
|
starship preset tokyo-night -o ~/.config/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
[Click to download TOML](/presets/toml/tokyo-night.toml){download}
|
[Нажмите, чтобы загрузить TOML](/presets/toml/tokyo-night.toml){download}
|
||||||
|
|
||||||
<<< @/public/presets/toml/tokyo-night.toml
|
<<< @/public/presets/toml/tokyo-night.toml
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future. Only Nushell v0.78+ is supported.
|
This will change in the future. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Nushell env dosyanızın sonuna aşağıdakileri ekleyin (Nushell'de `$nu.env-path` komutunu çalıştırarak bulabilirsiniz):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Aşağıdaki kodu Nushell ayarlarınızın (`$nu.config-path` komutu ile ulaşabilirsiniz) sonuna ekleyin:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- The current directory contains a `bun.lock` file
|
||||||
- The current directory contains a `bun.lockb` file
|
- The current directory contains a `bun.lockb` file
|
||||||
- The current directory contains a `bunfig.toml` file
|
- The current directory contains a `bunfig.toml` file
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `stil` | `'bold red'` | The style for the module. |
|
| `stil` | `'bold red'` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `stil` | `'bold orange'` | The style for the module. |
|
| `stil` | `'bold orange'` | The style for the module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Options
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `stil` | `'bold red'` | The style for the module. |
|
| `stil` | `'bold red'` | The style for the module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Example | Description |
|
| Variable | Example | Description |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Nushell env dosyanızın sonuna aşağıdakileri ekleyin (Nushell'de `$nu.env-path` komutunu çalıştırarak bulabilirsiniz):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Aşağıdaki kodu Nushell ayarlarınızın (`$nu.config-path` komutu ile ulaşabilirsiniz) sonuna ekleyin:
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Not: Nushell v0.78'tan sonraki sürümler desteklenmektedir
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Це зміниться в майбутньому. Підтримується лише Nushell v0.78+.
|
Це зміниться в майбутньому. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Додайте наступне в кінець вашого файлу env (його можна знайти за допомогою змінної `$nu.env-path` в Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Додайте наступний рядок наприкінці Вашої конфігурації Nushell (знайдіть її виконавши `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
Модуль `bun` показує поточну встановлену версію рушія JavaScript – [bun](https://bun.sh). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
|
Модуль `bun` показує поточну встановлену версію рушія JavaScript – [bun](https://bun.sh). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
|
||||||
|
|
||||||
|
- Поточна тека містить файл `bun.lock`
|
||||||
- Поточна тека містить файл `bun.lockb`
|
- Поточна тека містить файл `bun.lockb`
|
||||||
- Поточна тека містить файл `bunfig.toml`
|
- Поточна тека містить файл `bunfig.toml`
|
||||||
|
|
||||||
### Параметри
|
### Параметри
|
||||||
|
|
||||||
| Параметр | Стандартно | Опис |
|
| Параметр | Стандартно | Опис |
|
||||||
| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
|
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
|
||||||
| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
|
| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
|
||||||
| `symbol` | `'🥟 '` | Формат рядка, що представляє символ Bun. |
|
| `symbol` | `'🥟 '` | Формат рядка, що представляє символ Bun. |
|
||||||
| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
|
| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Які імена файлів мають запускати цей модуль. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Які імена файлів мають запускати цей модуль. |
|
||||||
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
|
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
|
||||||
| `style` | `'bold red'` | Стиль модуля. |
|
| `style` | `'bold red'` | Стиль модуля. |
|
||||||
| `disabled` | `false` | Вимикає модуль `bun`. |
|
| `disabled` | `false` | Вимикає модуль `bun`. |
|
||||||
|
|
||||||
### Змінні
|
### Змінні
|
||||||
|
|
||||||
@ -1047,7 +1048,7 @@ format = 'via [🔰 $version](bold red) '
|
|||||||
|
|
||||||
Модуль `deno` показує поточну встановлену версію [Deno](https://deno.land/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
|
Модуль `deno` показує поточну встановлену версію [Deno](https://deno.land/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
|
||||||
|
|
||||||
- The current directory contains a `deno.json`, `deno.jsonc`, `deno.lock`, `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
|
- Поточна тека містить файли `deno.json`, `deno.jsonc`, `deno.lock`, `mod.ts`, `mod.js`, `deps.ts` чи `deps.js`
|
||||||
|
|
||||||
### Параметри
|
### Параметри
|
||||||
|
|
||||||
@ -1175,6 +1176,7 @@ truncation_symbol = '…/'
|
|||||||
| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
|
| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
|
||||||
| `detect_files` | `['.envrc']` | Які імена файлів мають запускати цей модуль. |
|
| `detect_files` | `['.envrc']` | Які імена файлів мають запускати цей модуль. |
|
||||||
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
|
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
|
||||||
|
| `detect_env_vars` | `['DIRENV_FILE']` | Які змінні середовища повинні запускати цей модуль. |
|
||||||
| `allowed_msg` | `'allowed'` | Повідомлення, що показується коли використання rc-файлу дозволене. |
|
| `allowed_msg` | `'allowed'` | Повідомлення, що показується коли використання rc-файлу дозволене. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
|
| `not_allowed_msg` | `'not allowed'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
|
||||||
| `denied_msg` | `'denied'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
|
| `denied_msg` | `'denied'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
|
||||||
@ -1204,7 +1206,7 @@ disabled = false
|
|||||||
|
|
||||||
## Docker Context
|
## Docker Context
|
||||||
|
|
||||||
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or `desktop-linux`, or if the `DOCKER_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
|
Модуль `docker_context` показує поточний [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) якщо його не встановлено у `default` чи `desktop-linux`, або якщо змінні середовища `DOCKER_MACHINE_NAME`, `DOCKER_HOST` або `DOCKER_CONTEXT` встановлені (оскільки вони призначені для перевизначення контексту).
|
||||||
|
|
||||||
### Параметри
|
### Параметри
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ format = '[$symbol$environment](dimmed blue) '
|
|||||||
|
|
||||||
### Параметри
|
### Параметри
|
||||||
|
|
||||||
| Параметр | Стандартно | Опис |
|
| Параметр | Стандартно | Опис |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | Формат модуля |
|
| `format` | `'[$symbol$status]($style) '` | Формат модуля |
|
||||||
| `symbol` | `'❌'` | Символ, що показується у випадку помилки |
|
| `symbol` | `'❌'` | Символ, що показується у випадку помилки |
|
||||||
| `success_symbol` | `''` | Символ, що показується після успішного завершення попередньої команди |
|
| `success_symbol` | `''` | Символ, що показується після успішного завершення попередньої команди |
|
||||||
| `not_executable_symbol` | `'🚫'` | Символ, що показується у випадку виконати файл, який не є виконуваним |
|
| `not_executable_symbol` | `'🚫'` | Символ, що показується у випадку виконати файл, який не є виконуваним |
|
||||||
| `not_found_symbol` | `'🔍'` | Символ, що показується, коли команду не знайдено |
|
| `not_found_symbol` | `'🔍'` | Символ, що показується, коли команду не знайдено |
|
||||||
| `sigint_symbol` | `'🧱'` | Символ, що показується для SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | Символ, що показується для SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | Символ для будь-якого сигналу |
|
| `signal_symbol` | `'⚡'` | Символ для будь-якого сигналу |
|
||||||
| `style` | `'bold red'` | Стиль модуля. |
|
| `style` | `'bold red'` | Стиль модуля. |
|
||||||
| `recognize_signal_code` | `true` | Вмикає сигнал на код виходу |
|
| `success_style` | | Стиль, який використовується при успішному виконанні програми (стандартно `style`, якщо не встановлено). |
|
||||||
| `map_symbol` | `false` | Вмикає символ на код виходу |
|
| `failure_style` | | Стиль, який використовується при збої програми (стандартно `style`, якщо не встановлено). |
|
||||||
| `pipestatus` | `false` | Вмикає звітування про pipestatus |
|
| `recognize_signal_code` | `true` | Вмикає сигнал на код виходу |
|
||||||
| `pipestatus_separator` | <code>|</code> | Символ, що використовується для розділення сегментів конвеєра (підтримує форматування) |
|
| `map_symbol` | `false` | Вмикає символ на код виходу |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | Формат модуля, коли команда є конвеєром |
|
| `pipestatus` | `false` | Вмикає звітування про pipestatus |
|
||||||
| `pipestatus_segment_format` | | Якщо вказано, замінює `format` під час форматування сегментів конвеєра |
|
| `pipestatus_separator` | <code>|</code> | Символ, що використовується для розділення сегментів конвеєра (підтримує форматування) |
|
||||||
| `disabled` | `true` | Вимикає модуль `status`. |
|
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style) '` | Формат модуля, коли команда є конвеєром |
|
||||||
|
| `pipestatus_segment_format` | | Якщо вказано, замінює `format` під час форматування сегментів конвеєра |
|
||||||
|
| `disabled` | `true` | Вимикає модуль `status`. |
|
||||||
|
|
||||||
### Змінні
|
### Змінні
|
||||||
|
|
||||||
| Змінна | Приклад | Опис |
|
| Змінна | Приклад | Опис |
|
||||||
| -------------- | ------- | -------------------------------------------------------------------------------- |
|
| -------------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | Код виходу останньої команди |
|
| status | `127` | Код виходу останньої команди |
|
||||||
| hex_status | `0x7F` | Код виходу останньої команди в hex |
|
| hex_status | `0x7F` | Код виходу останньої команди в hex |
|
||||||
| int | `127` | Код виходу останньої команди |
|
| int | `127` | Код виходу останньої команди |
|
||||||
| common_meaning | `ERROR` | Значення коду, якщо не сигнал |
|
| common_meaning | `ERROR` | Значення коду, якщо не сигнал |
|
||||||
| signal_number | `9` | Номер сигналу, що відповідає коду завершення, за наявності |
|
| signal_number | `9` | Номер сигналу, що відповідає коду завершення, за наявності |
|
||||||
| signal_name | `KILL` | Назва сигналу, що відповідає коду виходу лише в тому випадку, якщо його записано |
|
| signal_name | `KILL` | Назва сигналу, що відповідає коду виходу лише в тому випадку, якщо його записано |
|
||||||
| maybe_int | `7` | Містить номер коду виходу, коли значення не знайдено |
|
| maybe_int | `7` | Містить номер коду виходу, коли значення не знайдено |
|
||||||
| pipestatus | | Показує коду виходу конвеєра, доступно тільки в форматі pipestatus_format |
|
| pipestatus | | Показує коду виходу конвеєра, доступно тільки в форматі pipestatus_format |
|
||||||
| symbol | | Віддзеркалює значення параметра `symbol` |
|
| symbol | | Віддзеркалює значення параметра `symbol` |
|
||||||
| style\* | | Віддзеркалює значення параметра `style` |
|
| style\* | | Віддзеркалити значення параметра `success_style` при успішному виконанні програмі та `failure_style` в іншому випадку |
|
||||||
|
|
||||||
*: Ця змінна може бути використана лише як частина стилю рядка
|
*: Ця змінна може бути використана лише як частина стилю рядка
|
||||||
|
|
||||||
@ -4605,7 +4612,7 @@ symbol = '⚡️ '
|
|||||||
| Параметр | Стандартно | Опис |
|
| Параметр | Стандартно | Опис |
|
||||||
| ------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `command` | `''` | Команда, вивід якої потрібно показувати. Команду буде передано до оболонки через stdin. |
|
| `command` | `''` | Команда, вивід якої потрібно показувати. Команду буде передано до оболонки через stdin. |
|
||||||
| `when` | `false` | Або булеве значення (`true` чи `false`, без лапок) або команди shell, що використовуються як умова для показу модуля. In case of a string, the module will be shown if the `shell` returns a `0` status code from executing it. |
|
| `when` | `false` | Або булеве значення (`true` чи `false`, без лапок) або команди shell, що використовуються як умова для показу модуля. У випадку рядка команди, модуль буде показаний, якщо `shell` повертає код завершення `0`. |
|
||||||
| `require_repo` | `false` | Якщо `true`, модуль буде показано лише в шляхах, що містять репозиторій (git). Цей параметр сам по собі не є достатньою умовою для показу модуля за відсутності інших варіантів. |
|
| `require_repo` | `false` | Якщо `true`, модуль буде показано лише в шляхах, що містять репозиторій (git). Цей параметр сам по собі не є достатньою умовою для показу модуля за відсутності інших варіантів. |
|
||||||
| `shell` | | [Дивіться нижче](#custom-command-shell) |
|
| `shell` | | [Дивіться нижче](#custom-command-shell) |
|
||||||
| `description` | `'<custom module>'` | Опис модуля, який показується під час запуску `starship explain`. |
|
| `description` | `'<custom module>'` | Опис модуля, який показується під час запуску `starship explain`. |
|
||||||
@ -4625,7 +4632,7 @@ symbol = '⚡️ '
|
|||||||
|
|
||||||
| Змінна | Опис |
|
| Змінна | Опис |
|
||||||
| --------- | ---------------------------------------- |
|
| --------- | ---------------------------------------- |
|
||||||
| output | The output of `command` run in `shell` |
|
| output | Вивід `command` в `shell` |
|
||||||
| symbol | Віддзеркалює значення параметра `symbol` |
|
| symbol | Віддзеркалює значення параметра `symbol` |
|
||||||
| style\* | Віддзеркалює значення параметра `style` |
|
| style\* | Віддзеркалює значення параметра `style` |
|
||||||
|
|
||||||
@ -4640,7 +4647,7 @@ symbol = '⚡️ '
|
|||||||
|
|
||||||
Якщо не налаштовано, модуль повертатиметься до STARSHIP_SHELL, а потім до «sh» у Linux і «cmd /C» у Windows.
|
Якщо не налаштовано, модуль повертатиметься до STARSHIP_SHELL, а потім до «sh» у Linux і «cmd /C» у Windows.
|
||||||
|
|
||||||
The `command` (and `when`, if applicable) will be passed in on stdin.
|
Команду ` command` (`коли` це застосовується) буде передано у stdin.
|
||||||
|
|
||||||
Якщо `shell` не вказано або містить тільки один елемент і Starship виявить, що буде використано PowerShell, наступні аргументи будуть автоматично додані: `-Noprofile -Command -`. Якщо `shell` не вказано або міститься лише один елемент і Starship виявить, що буде використано Cmd, аргумент`/C` буде автоматично додано, а `stdin` буде встановлено у `false`. Якщо `shell` не вказано або міститься лише один елемент і Starship виявить, що буде використано Nushell, аргумент`c` буде автоматично додано, а `stdin` буде встановлено у `false`. Такої поведінки можна уникнути шляхом явного передавання аргументів до оболонки, наприклад,
|
Якщо `shell` не вказано або містить тільки один елемент і Starship виявить, що буде використано PowerShell, наступні аргументи будуть автоматично додані: `-Noprofile -Command -`. Якщо `shell` не вказано або міститься лише один елемент і Starship виявить, що буде використано Cmd, аргумент`/C` буде автоматично додано, а `stdin` буде встановлено у `false`. Якщо `shell` не вказано або міститься лише один елемент і Starship виявить, що буде використано Nushell, аргумент`c` буде автоматично додано, а `stdin` буде встановлено у `false`. Такої поведінки можна уникнути шляхом явного передавання аргументів до оболонки, наприклад,
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Додайте наступне в кінець вашого файлу env (його можна знайти за допомогою змінної `$nu.env-path` в Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Додайте наступний рядок наприкінці Вашої конфігурації Nushell (знайдіть її виконавши `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Примітка: Підтримується лише Nushell v0.78+
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -431,16 +425,16 @@ eval "$(starship init zsh)"
|
|||||||
|
|
||||||
Підтримайте цей проєкт [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.
|
Підтримайте цей проєкт [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.
|
||||||
|
|
||||||
## 🔒 Code Signing Policy
|
## 🔒 Політика Підпису коду
|
||||||
|
|
||||||
Безкоштовний підпис похідного коду надано [SignPath.io](https://signpath.io), сертифікат надано [SignPath Foundation](https://signpath.org).
|
Безкоштовний підпис початкового коду надано [SignPath.io](https://signpath.io), сертифікат надано [SignPath Foundation](https://signpath.org).
|
||||||
|
|
||||||
Code Signing Roles:
|
Ролі:
|
||||||
|
|
||||||
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
- Рецензенти: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
|
||||||
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
- Затверджувачі та автори: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
|
||||||
|
|
||||||
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
|
Ця програма не передаватиме жодної інформації до інших мережевих систем, якщо користувач або особа, яка її встановлює чи експлуатує, не зробить на це спеціального запиту.
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<br>
|
<br>
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
Điều này có thể thay đổi trong tương lai. Chỉ hỗ trợ nushell từ phiên bản 0.78 trở lên.
|
Điều này có thể thay đổi trong tương lai. Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Thêm đoạn code dưới đây vào cuối file Nushell env của bạn (Bạn có thể tìm đường dẫn tới file Nushell env bằng cách chạy `$nu.env-path` trong Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
Thêm đoạn code sau vào cuối file cấu hình Nushell (bạn có thể tìm đường dẫn tới file cấu hình Nushell bằng cách chạy câu lệnh `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. 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 `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. 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:
|
||||||
|
|
||||||
|
- Thư mục hiện tại chứa một tập tin `bun.lock`
|
||||||
- Thư mục hiện tại chứa một tập tin `bun.lockb`
|
- Thư mục hiện tại chứa một tập tin `bun.lockb`
|
||||||
- Thư mục hiện tại chứa một tập tin `bunfig.toml`
|
- Thư mục hiện tại chứa một tập tin `bunfig.toml`
|
||||||
|
|
||||||
### Các tuỳ chọn
|
### Các tuỳ chọn
|
||||||
|
|
||||||
| Tuỳ chọn | Mặc định | Mô tả |
|
| Tuỳ chọn | Mặc định | Mô tả |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
|
| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_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_files` | `['bun.lock', '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. |
|
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
|
||||||
| `style` | `'bold red'` | Kiểu cho module. |
|
| `style` | `'bold red'` | Kiểu cho module. |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### Các biến
|
### Các biến
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Tuỳ chọn | Mặc định | Mô tả |
|
| Tuỳ chọn | Mặc định | Mô tả |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Định dạng cho module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | Định dạng cho module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | Kiểu cho module. |
|
| `style` | `'bold orange'` | Kiểu cho module. |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
|
| `detect_extensions` | `[]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
|
||||||
| `detect_files` | `['.envrc']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
|
| `detect_files` | `['.envrc']` | 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. |
|
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### Các biến
|
### Các biến
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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
|
### Các tuỳ chọn
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiế
|
|||||||
|
|
||||||
### Các tuỳ chọn
|
### Các tuỳ chọn
|
||||||
|
|
||||||
| Tuỳ chọn | Mặc định | Mô tả |
|
| Tuỳ chọn | Mặc định | Mô tả |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | Kiểu cho module. |
|
| `style` | `'bold red'` | Kiểu cho module. |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### Các biến
|
### Các biến
|
||||||
|
|
||||||
| Biến | Ví dụ | Mô tả |
|
| Biến | Ví dụ | Mô tả |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
|
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
|
||||||
| style\* | | Giá trị ghi đè của `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: Biến này có thể chỉ được sử dụng như một phần của style string
|
*: Biến này có thể chỉ được sử dụng như một phần của style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Thêm đoạn code dưới đây vào cuối file Nushell env của bạn (Bạn có thể tìm đường dẫn tới file Nushell env bằng cách chạy `$nu.env-path` trong Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
Thêm đoạn code sau vào cuối file cấu hình Nushell (bạn có thể tìm đường dẫn tới file cấu hình Nushell bằng cách chạy câu lệnh `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Lưu ý: Chỉ hỗ trợ Nushell v0.78+
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
这部分今后可能会改变。 仅支持 Nushell v0.78+。
|
这部分今后可能会改变。 Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
在您的 Nushell 环境文件的最后(使用 `$nu.env-path` 来获取它的路径),添加以下内容:
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
`bun` 组件显示当前安装的 [bun](https://bun.sh) JavaScript 运行时版本。 默认情况下,此组件将在满足以下任意条件时显示:
|
`bun` 组件显示当前安装的 [bun](https://bun.sh) JavaScript 运行时版本。 默认情况下,此组件将在满足以下任意条件时显示:
|
||||||
|
|
||||||
|
- 当前目录包含 `bun.lock` 文件
|
||||||
- 当前目录包含一个 `bun.lockb` 文件
|
- 当前目录包含一个 `bun.lockb` 文件
|
||||||
- 当前目录包含一个 `bunfig.toml` 文件
|
- 当前目录包含一个 `bunfig.toml` 文件
|
||||||
|
|
||||||
### 配置项
|
### 配置项
|
||||||
|
|
||||||
| 选项 | 默认值 | 描述 |
|
| 选项 | 默认值 | 描述 |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
|
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
|
||||||
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
|
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
|
||||||
| `symbol` | `'🥟 '` | 用于表示Bun的格式化字符串 |
|
| `symbol` | `'🥟 '` | 用于表示Bun的格式化字符串 |
|
||||||
| `detect_extensions` | `[]` | 触发此组件的扩展名 |
|
| `detect_extensions` | `[]` | 触发此组件的扩展名 |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | 触发此组件的文件名 |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | 触发此组件的文件名 |
|
||||||
| `detect_folders` | `[]` | 触发此组件的文件夹 |
|
| `detect_folders` | `[]` | 触发此组件的文件夹 |
|
||||||
| `style` | `'bold red'` | 此组件的样式。 |
|
| `style` | `'bold red'` | 此组件的样式。 |
|
||||||
| `disabled` | `false` | 禁用`bun`组件 |
|
| `disabled` | `false` | 禁用`bun`组件 |
|
||||||
|
|
||||||
### 变量
|
### 变量
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### 配置项
|
### 配置项
|
||||||
|
|
||||||
| 选项 | 默认值 | 描述 |
|
| 选项 | 默认值 | 描述 |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | 组件格式化模板。 |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | 组件格式化模板。 |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | 此组件的样式。 |
|
| `style` | `'bold orange'` | 此组件的样式。 |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | 触发此组件的扩展名 |
|
| `detect_extensions` | `[]` | 触发此组件的扩展名 |
|
||||||
| `detect_files` | `['.envrc']` | 触发此组件的文件名 |
|
| `detect_files` | `['.envrc']` | 触发此组件的文件名 |
|
||||||
| `detect_folders` | `[]` | 触发此组件的文件夹 |
|
| `detect_folders` | `[]` | 触发此组件的文件夹 |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### 变量
|
### 变量
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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.
|
||||||
|
|
||||||
### 配置项
|
### 配置项
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ The `status` module displays the exit code of the previous command. If $success_
|
|||||||
|
|
||||||
### 配置项
|
### 配置项
|
||||||
|
|
||||||
| 选项 | 默认值 | 描述 |
|
| 选项 | 默认值 | 描述 |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | 此组件的样式。 |
|
| `style` | `'bold red'` | 此组件的样式。 |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### 变量
|
### 变量
|
||||||
|
|
||||||
| 字段 | 示例 | 描述 |
|
| 字段 | 示例 | 描述 |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | `symbol`对应值 |
|
| symbol | | `symbol`对应值 |
|
||||||
| style\* | | `style`对应值 |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: 此变量只能作为样式字符串的一部分使用
|
*: 此变量只能作为样式字符串的一部分使用
|
||||||
|
|
||||||
|
@ -123,8 +123,8 @@ sh -c 'rm "$(command -v 'starship')"'
|
|||||||
|
|
||||||
## 我如何在没有 `sudo` 的情况下安装 Starship?
|
## 我如何在没有 `sudo` 的情况下安装 Starship?
|
||||||
|
|
||||||
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`
|
Shell 安装脚本(`https://starship.rs/install`)只有在目标安装目录对当前用户不可写时,才会尝试使用 `sudo`。 默认安装目录是环境变量 `$BIN_DIR` 的值或 `/usr/loca/bin`(如果 `$BIN_DIR` 未设置)。 如果您将安装目录设置为当前用户可写的目录,则可以在不使用 `sudo` 的情况下安装 starship。 例如, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` 使用安装脚本的 `-b` 命令行选项将安装目录设置为 ~/.local/bin。
|
||||||
|
|
||||||
对于非交互 Starship 安装, 请添加 `-y` 以跳过确认 查看安装脚本源码以获取所有支持的选项
|
对于非交互式安装 Starship,记得添加 `-y` 选项以跳过确认。 要获取所有选项,请查看安装脚本的源代码。
|
||||||
|
|
||||||
当使用包管理器时, 查询包管理器关于有无`sudo`安装的文档
|
当使用包管理器时,请参阅您所用包管理器的文档,以了解如何在有或没有 `sudo` 的情况下进行安装。
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
在您的 Nushell 环境文件的最后(使用 `$nu.env-path` 来获取它的路径),添加以下内容:
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
注意:仅支持 Nushell v0.78+
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -166,21 +166,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
這項設定未來會改變。 只有支援 Nushell v0.78+。
|
這項設定未來會改變。 Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
新增下列內容至你的 Nushell env 檔案中的最下方(在 Nushell 執行 `$nu.env-path` 找到它)。
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
新增下列的內容至你的 Nushell 設定檔最下方(執行 `$nu.config-path` 找到它):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -591,21 +591,22 @@ symbol = '🦬 '
|
|||||||
|
|
||||||
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime. By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
||||||
|
- 目前資料夾中有一個 `bun.lock` 檔案
|
||||||
- 目前資料夾中有一個 `bun.lockb` 檔案
|
- 目前資料夾中有一個 `bun.lockb` 檔案
|
||||||
- 目前資料夾中有一個 `bunfig.toml` 檔案
|
- 目前資料夾中有一個 `bunfig.toml` 檔案
|
||||||
|
|
||||||
### 選項
|
### 選項
|
||||||
|
|
||||||
| 選項 | 預設 | 說明 |
|
| 選項 | 預設 | 說明 |
|
||||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
|
||||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
| `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_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `style` | `'bold red'` | 這個模組的風格。 |
|
| `style` | `'bold red'` | 這個模組的風格。 |
|
||||||
| `disabled` | `false` | Disables the `bun` module. |
|
| `disabled` | `false` | Disables the `bun` module. |
|
||||||
|
|
||||||
### 變數
|
### 變數
|
||||||
|
|
||||||
@ -1166,20 +1167,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
|
|||||||
|
|
||||||
### 選項
|
### 選項
|
||||||
|
|
||||||
| 選項 | 預設 | 說明 |
|
| 選項 | 預設 | 說明 |
|
||||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
|
||||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||||
| `style` | `'bold orange'` | 這個模組的風格。 |
|
| `style` | `'bold orange'` | 這個模組的風格。 |
|
||||||
| `disabled` | `true` | Disables the `direnv` module. |
|
| `disabled` | `true` | Disables the `direnv` module. |
|
||||||
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
|
||||||
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
|
||||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
|
||||||
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
|
||||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
| `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. |
|
||||||
|
|
||||||
### 變數
|
### 變數
|
||||||
|
|
||||||
@ -3056,7 +3058,7 @@ format = 'via [🐪 $version]($style) '
|
|||||||
|
|
||||||
## Odin
|
## 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.
|
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.
|
||||||
|
|
||||||
### 選項
|
### 選項
|
||||||
|
|
||||||
@ -3200,6 +3202,7 @@ Amazon = "🙂 "
|
|||||||
Android = "🤖 "
|
Android = "🤖 "
|
||||||
Arch = "🎗️ "
|
Arch = "🎗️ "
|
||||||
Artix = "🎗️ "
|
Artix = "🎗️ "
|
||||||
|
CachyOS = "🎗️ "
|
||||||
CentOS = "💠 "
|
CentOS = "💠 "
|
||||||
Debian = "🌀 "
|
Debian = "🌀 "
|
||||||
DragonFly = "🐉 "
|
DragonFly = "🐉 "
|
||||||
@ -3221,6 +3224,7 @@ MidnightBSD = "🌘 "
|
|||||||
Mint = "🌿 "
|
Mint = "🌿 "
|
||||||
NetBSD = "🚩 "
|
NetBSD = "🚩 "
|
||||||
NixOS = "❄️ "
|
NixOS = "❄️ "
|
||||||
|
Nobara = "🎩 "
|
||||||
OpenBSD = "🐡 "
|
OpenBSD = "🐡 "
|
||||||
OpenCloudOS = "☁️ "
|
OpenCloudOS = "☁️ "
|
||||||
openEuler = "🦉 "
|
openEuler = "🦉 "
|
||||||
@ -3237,6 +3241,7 @@ SUSE = "🦎 "
|
|||||||
Ubuntu = "🎯 "
|
Ubuntu = "🎯 "
|
||||||
Ultramarine = "🔷 "
|
Ultramarine = "🔷 "
|
||||||
Unknown = "❓ "
|
Unknown = "❓ "
|
||||||
|
Uos = "🐲 "
|
||||||
Void = " "
|
Void = " "
|
||||||
Windows = "🪟 "
|
Windows = "🪟 "
|
||||||
```
|
```
|
||||||
@ -4092,38 +4097,40 @@ The `status` module displays the exit code of the previous command. If $success_
|
|||||||
|
|
||||||
### 選項
|
### 選項
|
||||||
|
|
||||||
| 選項 | 預設 | 說明 |
|
| 選項 | 預設 | 說明 |
|
||||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
| `format` | `'[$symbol$status]($style) '` | The format of the module |
|
||||||
| `symbol` | `'❌'` | The symbol displayed on program error |
|
| `symbol` | `'❌'` | The symbol displayed on program error |
|
||||||
| `success_symbol` | `''` | The symbol displayed on program success |
|
| `success_symbol` | `''` | The symbol displayed on program success |
|
||||||
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
|
||||||
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
|
||||||
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||||
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
|
||||||
| `style` | `'bold red'` | 這個模組的風格。 |
|
| `style` | `'bold red'` | 這個模組的風格。 |
|
||||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
| `success_style` | | The style used on program success (defaults to `style` if unset). |
|
||||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
|
||||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
|
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||||
| `disabled` | `true` | Disables the `status` module. |
|
| `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. |
|
||||||
|
|
||||||
### 變數
|
### 變數
|
||||||
|
|
||||||
| 變數 | 範例 | 說明 |
|
| 變數 | 範例 | 說明 |
|
||||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
|
||||||
| status | `127` | The exit code of the last command |
|
| status | `127` | The exit code of the last command |
|
||||||
| hex_status | `0x7F` | The exit code of the last command in hex |
|
| hex_status | `0x7F` | The exit code of the last command in hex |
|
||||||
| int | `127` | The exit code of the last command |
|
| int | `127` | The exit code of the last command |
|
||||||
| common_meaning | `ERROR` | Meaning of the code if not a signal |
|
| 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_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 |
|
| 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 |
|
| 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 |
|
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
|
||||||
|
|
||||||
*: This variable can only be used as a part of a style string
|
*: This variable can only be used as a part of a style string
|
||||||
|
|
||||||
|
@ -338,20 +338,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
新增下列內容至你的 Nushell env 檔案中的最下方(在 Nushell 執行 `$nu.env-path` 找到它)。
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
新增下列的內容至你的 Nushell 設定檔最下方(執行 `$nu.config-path` 找到它):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user