mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
docs(i18n): new Crowdin updates (#5358)
* 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 (Sorani (Kurdish)) * New translations readme.md (Norwegian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Bengali) * New translations readme.md (Spanish) * New translations readme.md (French) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Korean) * New translations readme.md (Korean) * New translations readme.md (Arabic) * New translations readme.md (Korean) * New translations readme.md (Korean) * New translations readme.md (Korean) * New translations nerd-font.md (Korean) * New translations pure-preset.md (Korean) * New translations tokyo-night.md (Korean) * New translations gruvbox-rainbow.md (Korean) * New translations bracketed-segments.md (Korean) * New translations no-runtimes.md (Korean) * New translations plain-text.md (Korean) * New translations pastel-powerline.md (Korean) * New translations no-nerd-font.md (Korean) * New translations no-empty-icons.md (Korean) * New translations jetpack.md (Korean) * New translations no-nerd-font.md (Spanish) * New translations no-empty-icons.md (Spanish) * New translations readme.md (Spanish) * New translations readme.md (French) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Spanish) * New translations readme.md (French) * New translations readme.md (German) * New translations readme.md (Japanese) * New translations readme.md (Korean) * New translations readme.md (Polish) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (French) * New translations readme.md (Russian) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Ukrainian) * New translations readme.md (Spanish) * New translations readme.md (Spanish) * New translations readme.md (French) * New translations readme.md (Russian) * New translations readme.md (French) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Bengali) * New translations readme.md (Spanish) * New translations readme.md (French) * New translations readme.md (French) * 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 (Russian) * 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 (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Spanish) * New translations readme.md (French) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Ukrainian) * New translations readme.md (Spanish) * New translations readme.md (French) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Spanish) * New translations readme.md (French) * 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 (Polish) * New translations readme.md (Portuguese) * New translations readme.md (Russian) * New translations readme.md (Turkish) * 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 (Sorani (Kurdish)) * New translations readme.md (Ukrainian) * New translations readme.md (Norwegian) * New translations readme.md (Bengali) * New translations readme.md (Ukrainian) * New translations readme.md (Ukrainian) * New translations readme.md (Spanish) * New translations readme.md (French) * New translations readme.md (German) * New translations readme.md (Japanese) * New translations readme.md (Russian) * 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 (Polish) * New translations readme.md (Polish) * New translations readme.md (Polish) * New translations gruvbox-rainbow.md (Polish) * New translations jetpack.md (Polish) * New translations readme.md (Ukrainian)
This commit is contained in:
+259
-94
@@ -206,6 +206,13 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
|
||||
| `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 |
|
||||
| `palette` | `''` | Sets which color palette from `palettes` to use. |
|
||||
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
|
||||
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
|
||||
|
||||
::: tip
|
||||
|
||||
If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
|
||||
|
||||
:::
|
||||
|
||||
### 設定例
|
||||
|
||||
@@ -253,6 +260,7 @@ $kubernetes\
|
||||
$directory\
|
||||
$vcsh\
|
||||
$fossil_branch\
|
||||
$fossil_metrics\
|
||||
$git_branch\
|
||||
$git_commit\
|
||||
$git_state\
|
||||
@@ -301,6 +309,7 @@ $scala\
|
||||
$solidity\
|
||||
$swift\
|
||||
$terraform\
|
||||
$typst\
|
||||
$vlang\
|
||||
$vagrant\
|
||||
$zig\
|
||||
@@ -314,6 +323,7 @@ $aws\
|
||||
$gcloud\
|
||||
$openstack\
|
||||
$azure\
|
||||
$direnv\
|
||||
$env_var\
|
||||
$crystal\
|
||||
$custom\
|
||||
@@ -351,6 +361,8 @@ The module will display a profile only if its credentials are present in `~/.aws
|
||||
|
||||
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
|
||||
|
||||
When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
|
||||
| `region_aliases` | `{}` | AWS名に加えて表示するリージョンのエイリアスです。 |
|
||||
| `profile_aliases` | `{}` | AWS名に加えて表示するプロファイルのエイリアスです。 |
|
||||
| `style` | `'bold yellow'` | モジュールのスタイルです。 |
|
||||
| `expiration_symbol` | `X` | この記号は一時的な資格情報が有効期限切れの場合に表示されます。 |
|
||||
| `expiration_symbol` | `'X'` | この記号は一時的な資格情報が有効期限切れの場合に表示されます。 |
|
||||
| `disabled` | `false` | `aws`モジュールを無効にします。 |
|
||||
| `force_display` | `false` | `true`の場合、`credentials`、`credential_process`または`sso_start_url`が設定されていない場合でも情報を表示します。 |
|
||||
|
||||
@@ -620,17 +632,17 @@ format = 'via [🍔 $version](bold green) '
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------ |
|
||||
| `format` | `'via [$symbol($version(-$name) )]($style)'` | モジュールのフォーマット文字列。 |
|
||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `'C '` | コンパイラの詳細を表示する前に使用される記号です。 |
|
||||
| `detect_extensions` | `['c', 'h']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | コンパイラを検出する方法 |
|
||||
| `style` | `'bold 149'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `c`モジュールを無効にします。 |
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------ |
|
||||
| `format` | `'via [$symbol($version(-$name) )]($style)'` | モジュールのフォーマット文字列。 |
|
||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `'C '` | コンパイラの詳細を表示する前に使用される記号です。 |
|
||||
| `detect_extensions` | `['c', 'h']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | コンパイラを検出する方法 |
|
||||
| `style` | `'bold 149'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `c`モジュールを無効にします。 |
|
||||
|
||||
### 変数
|
||||
|
||||
@@ -1137,6 +1149,47 @@ truncation_length = 8
|
||||
truncation_symbol = '…/'
|
||||
```
|
||||
|
||||
## Direnv
|
||||
|
||||
The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `'[$symbol$loaded/$allowed]($style) '` | module のフォーマットです。 |
|
||||
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
|
||||
| `style` | `'bold orange'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `true` | Disables the `direnv` module. |
|
||||
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
|
||||
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
|
||||
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
|
||||
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
|
||||
|
||||
### 変数
|
||||
|
||||
| 変数 | 設定例 | 説明 |
|
||||
| --------- | ------------------- | --------------------------------------- |
|
||||
| loaded | `loaded` | Whether the current rc file is loaded. |
|
||||
| allowed | `denied` | Whether the current rc file is allowed. |
|
||||
| rc_path | `/home/test/.envrc` | The current rc file path. |
|
||||
| symbol | | オプション `symbol` の値をミラーする. |
|
||||
| style\* | `red bold` | オプション `style` の値をミラーする. |
|
||||
|
||||
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
||||
|
||||
### 設定例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[direnv]
|
||||
disabled = false
|
||||
```
|
||||
|
||||
## Docker Context
|
||||
|
||||
`docker_context`モジュールは、`default`に設定されていない場合、または環境変数`DOCKER_MACHINE_NAME`、`DOCKER_HOST`または`DOCKER_CONTEXT`が設定されている場合 (使用中のコンテキストを上書きするため)、現在アクティブな[Docker context](https://docs.docker.com/engine/context/working-with-contexts/)を表示します。
|
||||
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
|
||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
|
||||
| `style` | `'bold green'` | モジュールのスタイルです。 |
|
||||
| `detect_extensions` | `[fnl]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_extensions` | `['fnl']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `disabled` | `false` | Disables the `fennel` module. |
|
||||
@@ -1524,11 +1577,46 @@ truncation_length = 4
|
||||
truncation_symbol = ''
|
||||
```
|
||||
|
||||
## Fossil Metrics
|
||||
|
||||
The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
|
||||
| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | module のフォーマットです。 |
|
||||
| `added_style` | `'bold green'` | The style for the added count. |
|
||||
| `deleted_style` | `'bold red'` | The style for the deleted count. |
|
||||
| `only_nonzero_diffs` | `true` | Render status only for changed items. |
|
||||
| `disabled` | `true` | Disables the `fossil_metrics` module. |
|
||||
|
||||
### 変数
|
||||
|
||||
| 変数 | 設定例 | 説明 |
|
||||
| ----------------- | --- | ------------------------------------------- |
|
||||
| added | `1` | The current number of added lines |
|
||||
| deleted | `2` | The current number of deleted lines |
|
||||
| added_style\* | | Mirrors the value of option `added_style` |
|
||||
| deleted_style\* | | Mirrors the value of option `deleted_style` |
|
||||
|
||||
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
||||
|
||||
### 設定例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[fossil_metrics]
|
||||
added_style = 'bold blue'
|
||||
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
|
||||
```
|
||||
|
||||
## Google Cloud (`gcloud`)
|
||||
|
||||
`gcloud` モジュールは、 [`gcloud`](https://cloud.google.com/sdk/gcloud) CLIの現在の設定が表示されます。 これは `~/.config/gcloud/active_config` ファイルと `~/.config/gcloud/configurations/config_{CONFIG NAME}` ファイルと `CLOUDSDK_CONFIG` 環境変数に基づきます。
|
||||
|
||||
When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
|
||||
When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
|
||||
|
||||
### オプション
|
||||
|
||||
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ---------- | -------------------------- | ------------------------------------------------------ |
|
||||
| `format` | `'via [$symbol]($style) '` | module のフォーマットです。 |
|
||||
| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
|
||||
| `style` | `"yellow bold"` | モジュールのスタイルです。 |
|
||||
| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
|
||||
| `style` | `'yellow bold'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | Disables the `guix_shell` module. |
|
||||
|
||||
### 変数
|
||||
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
|
||||
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
|
||||
| `detect_extensions` | `["gradle", "gradle.kts"]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
|
||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
|
||||
| `detect_extensions` | `['gradle', 'gradle.kts']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `["gradle"]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `style` | `"bold bright-cyan"` | モジュールのスタイルです。 |
|
||||
| `detect_folders` | `['gradle']` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `style` | `'bold bright-cyan'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | Disables the `gradle` module. |
|
||||
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
|
||||
|
||||
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
|
||||
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `detect_extensions` | `["hx", "hxml"]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[".haxelib", "haxe_libraries"]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
|
||||
| `style` | `"bold fg:202"` | モジュールのスタイルです。 |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
|
||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `detect_extensions` | `['hx', 'hxml']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `['.haxelib', 'haxe_libraries']` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
|
||||
| `style` | `'bold fg:202'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | Disables the `haxe` module. |
|
||||
|
||||
### 変数
|
||||
@@ -2107,14 +2195,15 @@ format = 'via [⎈ $version](bold white) '
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||
| `ssh_only` | `true` | SSHセッションに接続されている場合にのみホスト名を表示します。 |
|
||||
| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
|
||||
| `trim_at` | `'.'` | この文字が最初にマッチするまでをホスト名と認識します。 `'.'` will stop after the first dot. `''` will disable any truncation |
|
||||
| `format` | `'[$ssh_symbol$hostname]($style) in '` | module のフォーマットです。 |
|
||||
| `style` | `'bold dimmed green'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `hostname`モジュールを無効にします。 |
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
||||
| `ssh_only` | `true` | SSHセッションに接続されている場合にのみホスト名を表示します。 |
|
||||
| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
|
||||
| `trim_at` | `'.'` | この文字が最初にマッチするまでをホスト名と認識します。 `'.'` will stop after the first dot. `''` will disable any truncation. |
|
||||
| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
|
||||
| `format` | `'[$ssh_symbol$hostname]($style) in '` | module のフォーマットです。 |
|
||||
| `style` | `'bold dimmed green'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `hostname`モジュールを無効にします。 |
|
||||
|
||||
### 変数
|
||||
|
||||
@@ -2128,6 +2217,8 @@ format = 'via [⎈ $version](bold white) '
|
||||
|
||||
### 設定例
|
||||
|
||||
#### Always show the hostname
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
|
||||
disabled = false
|
||||
```
|
||||
|
||||
#### Hide the hostname in remote tmux sessions
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[hostname]
|
||||
ssh_only = false
|
||||
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
|
||||
disabled = false
|
||||
```
|
||||
|
||||
## Java
|
||||
|
||||
`Java`モジュールは、現在インストールされている[Java](https://www.oracle.com/java/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||
@@ -2323,7 +2425,7 @@ kotlin_binary = 'kotlinc'
|
||||
|
||||
## Kubernetes
|
||||
|
||||
Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 環境変数`$KUBECONFIG`が設定されている場合、このモジュールはそれを利用し、`~/.kube/config`を利用しません。
|
||||
Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 環境変数`$KUBECONFIG`が設定されている場合、このモジュールはそれを利用し、`~/.kube/config`を利用しません。
|
||||
|
||||
::: tip
|
||||
|
||||
@@ -2335,17 +2437,39 @@ When the module is enabled it will always be active, unless any of `detect_exten
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ---------------------------------------------------- | --------------------------------- |
|
||||
| `symbol` | `'☸ '` | クラスター名の前に表示されるシンボルを表すフォーマット文字列。 |
|
||||
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | module のフォーマットです。 |
|
||||
| `style` | `'cyan bold'` | モジュールのスタイルです。 |
|
||||
| `context_aliases` | `{}` | コンテキストの表示エイリアスを定義するテーブル。 |
|
||||
| `user_aliases` | `{}` | Table of user aliases to display. |
|
||||
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `disabled` | `true` | `kubernetes` モジュールを無効にする。 |
|
||||
::: warning
|
||||
|
||||
The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
|
||||
|
||||
:::
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
|
||||
| `symbol` | `'☸ '` | クラスター名の前に表示されるシンボルを表すフォーマット文字列。 |
|
||||
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | module のフォーマットです。 |
|
||||
| `style` | `'cyan bold'` | モジュールのスタイルです。 |
|
||||
| `context_aliases`* | `{}` | コンテキストの表示エイリアスを定義するテーブル。 |
|
||||
| `user_aliases`* | `{}` | Table of user aliases to display. |
|
||||
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
|
||||
| `disabled` | `true` | `kubernetes` モジュールを無効にする。 |
|
||||
|
||||
*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
|
||||
|
||||
To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
|
||||
|
||||
| 変数 | 説明 |
|
||||
| ----------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
|
||||
| `user_pattern` | Regular expression to match current Kubernetes user name. |
|
||||
| `context_alias` | Context alias to display instead of the full context name. |
|
||||
| `user_alias` | User alias to display instead of the full user name. |
|
||||
| `style` | The style for the module when using this context. If not set, will use module's style. |
|
||||
| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
|
||||
|
||||
Note that all regular expression are anchored with `^<pattern>$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
|
||||
|
||||
### 変数
|
||||
|
||||
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
|
||||
[kubernetes]
|
||||
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
|
||||
disabled = false
|
||||
[kubernetes.context_aliases]
|
||||
'dev.local.cluster.k8s' = 'dev'
|
||||
'.*/openshift-cluster/.*' = 'openshift'
|
||||
'gke_.*_(?P<var_cluster>[\w-]+)' = 'gke-$var_cluster'
|
||||
[kubernetes.user_aliases]
|
||||
'dev.local.cluster.k8s' = 'dev'
|
||||
'root/.*' = 'root'
|
||||
contexts = [
|
||||
{ context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
|
||||
]
|
||||
```
|
||||
|
||||
Only show the module in directories that contain a `k8s` file.
|
||||
@@ -2387,25 +2507,36 @@ disabled = false
|
||||
detect_files = ['k8s']
|
||||
```
|
||||
|
||||
#### Regex Matching
|
||||
#### Kubernetes Context specific config
|
||||
|
||||
Additional to simple aliasing, `context_aliases` and `user_aliases` also supports extended matching and renaming using regular expressions.
|
||||
|
||||
The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
|
||||
|
||||
Long and automatically generated cluster names can be identified and shortened using regular expressions:
|
||||
The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
|
||||
|
||||
```toml
|
||||
[kubernetes.context_aliases]
|
||||
# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
|
||||
'.*/openshift-cluster/.*' = 'openshift'
|
||||
# Or better, to rename every OpenShift cluster at once:
|
||||
'.*/(?P<var_cluster>[\w-]+)/.*' = '$var_cluster'
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[[kubernetes.contexts]]
|
||||
# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
|
||||
# equals "admin_user"
|
||||
context_pattern = "production"
|
||||
user_pattern = "admin_user"
|
||||
style = "bold red"
|
||||
context_alias = "prod"
|
||||
user_alias = "admin"
|
||||
|
||||
[[kubernetes.contexts]]
|
||||
# "green" style + a different symbol when Kubernetes current context name contains openshift
|
||||
context_pattern = ".*openshift.*"
|
||||
style = "green"
|
||||
symbol = "💔 "
|
||||
context_alias = "openshift"
|
||||
|
||||
[[kubernetes.contexts]]
|
||||
# Using capture groups
|
||||
# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
|
||||
# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
|
||||
# and renames every matching kube context into a more readable format (`gke-cluster-name`):
|
||||
'gke_.*_(?P<var_cluster>[\w-]+)' = 'gke-$var_cluster'
|
||||
context_pattern = "gke_.*_(?P<cluster>[\\w-]+)"
|
||||
context_alias = "gke-$cluster"
|
||||
```
|
||||
|
||||
## Line Break
|
||||
@@ -2730,7 +2861,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
|
||||
| `detect_folders` | `['node_modules']` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `style` | `'bold green'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `nodejs`モジュールを無効にします。 |
|
||||
| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
|
||||
| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
|
||||
|
||||
### 変数
|
||||
|
||||
@@ -2890,8 +3021,8 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ---------- | --------------------- | ------------------------------------------------------ |
|
||||
| `format` | `"[$symbol]($style)"` | module のフォーマットです。 |
|
||||
| `style` | `"bold white"` | モジュールのスタイルです。 |
|
||||
| `format` | `'[$symbol]($style)'` | module のフォーマットです。 |
|
||||
| `style` | `'bold white'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `true` | Disables the `os` module. |
|
||||
| `symbols` | | A table that maps each operating system to its symbol. |
|
||||
|
||||
@@ -3245,7 +3376,7 @@ The `python` module shows the currently installed version of [Python](https://ww
|
||||
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
|
||||
| `style` | `'yellow bold'` | モジュールのスタイルです。 |
|
||||
| `pyenv_version_name` | `false` | pyenvを使用してPythonバージョンを取得します |
|
||||
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
|
||||
| `pyenv_prefix` | `'pyenv'` | Prefix before pyenv version display, only used if pyenv is used |
|
||||
| `python_binary` | `['python', 'python3', 'python2']` | Configures the python binaries that Starship should executes when getting the version. |
|
||||
| `detect_extensions` | `['py']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
@@ -3562,22 +3693,23 @@ The `shell` module shows an indicator for currently used shell.
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ---------------------- | ------------------------- | ------------------------------------------------------------ |
|
||||
| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
|
||||
| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
|
||||
| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
|
||||
| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
|
||||
| `ion_indicator` | `'ion'` | A format string used to represent ion. |
|
||||
| `elvish_indicator` | `'esh'` | A format string used to represent elvish. |
|
||||
| `tcsh_indicator` | `'tsh'` | A format string used to represent tcsh. |
|
||||
| `xonsh_indicator` | `'xsh'` | A format string used to represent xonsh. |
|
||||
| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
|
||||
| `nu_indicator` | `'nu'` | A format string used to represent nu. |
|
||||
| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
|
||||
| `format` | `'[$indicator]($style) '` | module のフォーマットです。 |
|
||||
| `style` | `'white bold'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `true` | Disables the `shell` module. |
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
|
||||
| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
|
||||
| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
|
||||
| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
|
||||
| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
|
||||
| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
|
||||
| `ion_indicator` | `'ion'` | A format string used to represent ion. |
|
||||
| `elvish_indicator` | `'esh'` | A format string used to represent elvish. |
|
||||
| `tcsh_indicator` | `'tsh'` | A format string used to represent tcsh. |
|
||||
| `xonsh_indicator` | `'xsh'` | A format string used to represent xonsh. |
|
||||
| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
|
||||
| `nu_indicator` | `'nu'` | A format string used to represent nu. |
|
||||
| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
|
||||
| `format` | `'[$indicator]($style) '` | module のフォーマットです。 |
|
||||
| `style` | `'white bold'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `true` | Disables the `shell` module. |
|
||||
|
||||
### 変数
|
||||
|
||||
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
|
||||
| `version_format` | `"v${major}.${minor}.${patch}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `"S "` | A format string representing the symbol of Solidity |
|
||||
| `compiler | ["solc"] | The default compiler for Solidity. |
|
||||
| `detect_extensions` | `["sol"]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
|
||||
| `version_format` | `'v${major}.${minor}.${patch}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `'S '` | A format string representing the symbol of Solidity |
|
||||
| `compiler | ['solc'] | The default compiler for Solidity. |
|
||||
| `detect_extensions` | `['sol']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `style` | `"bold blue"` | モジュールのスタイルです。 |
|
||||
| `style` | `'bold blue'` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | Disables this module. |
|
||||
|
||||
### 変数
|
||||
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
|
||||
time_range = '10:00:00-14:00:00'
|
||||
```
|
||||
|
||||
## Typst
|
||||
|
||||
The `typst` module shows the current installed version of Typst used in a project.
|
||||
|
||||
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||
|
||||
- カレントディレクトリに`template.typ`ファイルが含まれている
|
||||
- The current directory contains any `*.typ` file
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
|
||||
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `'t '` | Damlの記号を表すフォーマット文字列です。 |
|
||||
| `style` | `'bold #0093A7'` | モジュールのスタイルです。 |
|
||||
| `detect_extensions` | `['.typ']` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `['template.typ']` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `disabled` | `false` | `daml`モジュールを無効にします。 |
|
||||
|
||||
### 変数
|
||||
|
||||
| 変数 | 設定例 | 説明 |
|
||||
| ------------- | --------- | ----------------------------------------------- |
|
||||
| version | `v0.9.0` | The version of `typst`, alias for typst_version |
|
||||
| typst_version | `default` | The current Typst version |
|
||||
| symbol | | オプション `symbol` の値をミラーする |
|
||||
| style\* | | オプション `style` の値をミラーする |
|
||||
|
||||
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
|
||||
|
||||
## ユーザー名
|
||||
|
||||
`username`モジュールはアクティブなユーザーのユーザー名を表示します。 次の条件のいずれかが満たされると、モジュールが表示されます:
|
||||
|
||||
Reference in New Issue
Block a user