diff options
author | Matan Kushner <hello@matchai.dev> | 2022-12-05 15:54:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 15:54:12 +0900 |
commit | 70c05d49bd5d7767672be77f0c8e932897198d50 (patch) | |
tree | a930a02f39ab7d5a0b3c0eea77d2da6f0d9375af /docs/ja-JP/config/README.md | |
parent | 37b13ca2608444c39e5258c6a153b319620e8403 (diff) |
docs(i18n): new Crowdin updates (#4487)
Diffstat (limited to 'docs/ja-JP/config/README.md')
-rw-r--r-- | docs/ja-JP/config/README.md | 2071 |
1 files changed, 1167 insertions, 904 deletions
diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md index 05d7b11c5..05df16c0e 100644 --- a/docs/ja-JP/config/README.md +++ b/docs/ja-JP/config/README.md @@ -9,20 +9,23 @@ mkdir -p ~/.config && touch ~/.config/starship.toml Starshipのすべての設定は、この[TOML](https://github.com/toml-lang/toml)ファイルで行われます。 ```toml -# エディターの補完を設定スキーマに合わせて取得 +# Get editor completions based on the config schema "$schema" = 'https://starship.rs/config-schema.json' -# シェルのプロンプトの間に空行を挿入する +# Inserts a blank line between shell prompts add_newline = true -# 記号"❯"を記号"➜"に置き換える -[character] # 編集するモジュールの名前は"character" -success_symbol = "[➜](bold green)" # "success_symbol"を記号"➜"で"bold green"(太字の緑色)にセット -# パッケージモジュールを無効化することでプロンプトを完全に非表示にする +# Replace the '❯' symbol in the prompt with '➜' +[character] # The name of the module we are configuring is 'character' +success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green' + +# Disable the package module, hiding it from the prompt completely [package] disabled = true ``` +### Config File Location + `STARSHIP_CONFIG` 環境変数を使用することによって、デフォルトの設定ファイルの場所を変更できます。 ```sh @@ -69,6 +72,62 @@ os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp') 慣例により、ほとんどのモジュールにはデフォルトの端末色の接頭辞(「nodejs」の`via` など)と接尾辞として空のスペースがあります。 +### Strings + +In TOML syntax, [text values](https://toml.io/en/v1.0.0#string) are declared with `'`, `"`, `'''`, or `"""`. + +The following Starship syntax symbols have special usage in a format string and must be escaped to display as that character: `$ [ ] ( )`. + +| Symbol | Type | Notes | +| ------ | ------------------------- | ------------------------------------------------------ | +| `'` | literal string | less escaping | +| `"` | string | more escaping | +| `'''` | multi-line literal string | less escaping | +| `"""` | multi-line string | more escaping, newlines in declarations can be ignored | + +例: + +```toml +# literal string +format = '☺\☻ ' + +# regular string +format = "☺\\☻ " + +# escaping Starship symbols +format = '\[\$\] ' +``` + +When using line breaks, multi-line declarations can be used. For example, if you want to print a `$` symbol on a new line, the following values for `format` are equivalent: + +```toml +# with literal string +format = ''' + +\$''' + +# with multiline basic string +format = """ + +\\$""" + +# with basic string +format = "\n\\$" +``` + +In multiline basic strings, newlines can be used for formatting without being present in the value by escaping them. + +```toml +format = """ +line1\ +line1\ +line1 +line2\ +line2\ +line2 +""" +``` + ### 文字列のフォーマット 文字列の書式は、モジュールがすべての変数を出力する書式です。 ほとんどのモジュールには、モジュールの表示形式を設定する `format` というエントリがあります。 テキスト、変数、およびテキストグループをフォーマット文字列で使用できます。 @@ -79,9 +138,9 @@ os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp') 例: -- `$version` は、`version` という名前の変数を持つフォーマット文字列です。 -- `$git_branch$git_commit` は `git_branch` と `git_commit` という2つの変数を持つフォーマット文字列です。 -- `$git_branch $git_commit` には空白で区切られた 2 つの変数があります。 +- `'$version'` is a format string with a variable named `version`. +- `'$git_branch$git_commit'` is a format string with two variables named `git_branch` and `git_commit`. +- `'$git_branch $git_commit'` has the two variables separated with a space. #### テキストグループ @@ -93,22 +152,22 @@ os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp') 例: -- `[on](red bold)` は文字列 `on` に太字のテキストを赤色で表示します。 -- `[⌘ $version](bold green)` は `⌘` 記号とその後に続く変数 `version` の値を、太字の緑色で表示します。 -- `[a [b](red) c](green)` は `a b c` を `b` だけ赤色に表示し、 `a` と `c` を緑色に表示します。 +- `'[on](red bold)'` will print a string `on` with bold text colored red. +- `'[⌘ $version](bold green)'` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green. +- `'[a [b](red) c](green)'` will print `a b c` with `b` red, and `a` and `c` green. #### スタイルの設定 Starshipのほとんどのモジュールでは、表示スタイルを設定できます。 これは、設定を指定する文字列であるエントリ(`style`)で行われます。 スタイル文字列の例とその機能を次に示します。 完全な構文の詳細については、詳細は [高度な設定](/advanced-config/)を参照してください 。 -- `"fg:green bg:blue"` は、青色の背景に緑色のテキストを設定します -- `"bg:blue fg:bright-green"` は、青色の背景に明るい緑色のテキストを設定します -- `"bold fg:27"` は、 [ANSIカラー](https://i.stack.imgur.com/KTSQa.png) 27の太字テキストを設定します -- `"underline bg:#bf5700"` は、焦げたオレンジ色の背景に下線付きのテキストを設定します -- `"bold italic fg:purple"`は、紫色の太字斜体のテキストを設定します -- `""` はすべてのスタイルを明示的に無効にします +- `'fg:green bg:blue'` sets green text on a blue background +- `'bg:blue fg:bright-green'` sets bright green text on a blue background +- `'bold fg:27'` sets bold text with [ANSI color](https://i.stack.imgur.com/KTSQa.png) 27 +- `'underline bg:#bf5700'` sets underlined text on a burnt orange background +- `'bold italic fg:purple'` sets bold italic purple text +- `''` explicitly disables all styling -スタイリングがどのように見えるかは、端末エミュレータによって制御されることに注意してください。 たとえば、一部の端末エミュレータはテキストを太字にする代わりに色を明るくします。また、一部のカラーテーマは通常の色と明るい色と同じ値を使用します。また、斜体のテキストを取得するには、端末で斜体をサポートする必要があります。スタイリングがどのように見えるかは、端末エミュレータによって制御されることに注意してください。たとえば、一部の端末エミュレータはテキストを太字にする代わりに色を明るくします。また、一部のカラーテーマは通常の色と明るい色と同じ値を使用します。 また、斜体のテキストを取得するには、端末で斜体をサポートする必要があります。 +スタイリングがどのように見えるかは、端末エミュレータによって制御されることに注意してください。 たとえば、一部の端末エミュレータはテキストを太字にする代わりに色を明るくします。また、一部のカラーテーマは通常の色と明るい色と同じ値を使用します。 また、斜体のテキストを取得するには、端末で斜体をサポートする必要があります。 #### 条件付きフォーマット設定 @@ -116,43 +175,20 @@ Starshipのほとんどのモジュールでは、表示スタイルを設定で 例: -- `(@$region)` は`region`が`None`または空だった場合表示されませんが、値がある場合は`@` に続いてregionの値が表示されます。 -- `(some text)` は括弧の中に変数がないので、常に何も表示しません。 -- `$all` が `\[$a$b\]` のショートカットである時、 `$a` と `$b` が両方とも `None` である場合に限り、`($all)` は何も表示しません。 これは `(\[$a$b\] )` と同じ動作をします。 - -#### 特殊文字 - -次の記号はフォーマット文字列で特殊な用途を持っているため、エスケープする必要があります。: `$ \ [ ] ( )`. - -TOMLには、 [基本文字列とリテラル文字列](https://toml.io/en/v1.0.0#string)の両方があることに注意してください。 設定では、リテラル文字列(シングルクォートで囲まれた文字列)を使用することをお勧めします。基本文字列(ダブルクォートで囲まれた文字列)を使用したい場合は、バックスラッシュ自体をエスケープする必要があります。(例: `\\`を使用する) - -例えば、新しい行に `$` 記号を表示したい場合、以下の `format` の設定が等価です。 - -```toml -# 基本文字列と -format = "\n\\$" - -# 複数行の基本文字列と -format = """ - -\\$""" - -# リテラル文字列と -format = ''' - -\$''' -``` +- `'(@$region)'` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region. +- `'(some text)'` will always show nothing since there are no variables wrapped in the braces. +- When `$combined` is a shortcut for `\[$a$b\]`, `'($combined)'` will show nothing only if `$a` and `$b` are both `None`. This works the same as `'(\[$a$b\] )'`. ### Negative matching -Many modules have `detect_extensions`, `detect_files`, and `detect_folders` variables. These take lists of strings to match or not match. "Negative" options, those which should not be matched, are indicated with a leading "!" character. The presence of _any_ negative indicator in the directory will result in the module not being matched. +Many modules have `detect_extensions`, `detect_files`, and `detect_folders` variables. These take lists of strings to match or not match. "Negative" options, those which should not be matched, are indicated with a leading '!' character. The presence of _any_ negative indicator in the directory will result in the module not being matched. Extensions are matched against both the characters after the last dot in a filename, and the characters after the first dot in a filename. For example, `foo.bar.tar.gz` will be matched against `bar.tar.gz` and `gz` in the `detect_extensions` variable. Files whose name begins with a dot are not considered to have extensions at all. To see how this works in practice, you could match TypeScript but not MPEG Transport Stream files thus: ```toml -detect_extensions = ["ts", "!video.ts", "!audio.ts"] +detect_extensions = ['ts', '!video.ts', '!audio.ts'] ``` ## プロンプト @@ -164,11 +200,11 @@ detect_extensions = ["ts", "!video.ts", "!audio.ts"] | オプション | デフォルト | 説明 | | ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 | -| `right_format` | `""` | [右プロンプトの有効化](/advanced-config/#enable-right-prompt)を参照してください。 | +| `right_format` | `''` | [右プロンプトの有効化](/advanced-config/#enable-right-prompt)を参照してください。 | | `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 | | `command_timeout` | `500` | Starshipによって実行されたコマンドのタイムアウト時間 (milliseconds) です。 | | `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 | -| `palette` | `""` | Sets which color palette from `palettes` to use. | +| `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. | ### 設定例 @@ -176,28 +212,27 @@ detect_extensions = ["ts", "!video.ts", "!audio.ts"] ```toml # ~/.config/starship.toml -# カスタムフォーマットを利用します -format = """ +# Use custom format +format = ''' [┌───────────────────>](bold green) [│](bold green)$directory$rust$package -[└─>](bold green) """ - -# starshipが現在のディレクトリ下のファイルをチェックするまで10ミリ秒待ちます +[└─>](bold green) ''' +# Wait 10 milliseconds for starship to check files under the current directory. scan_timeout = 10 # Disable the blank line at the start of the prompt add_newline = false -# Set "foo" as custom color palette -palette = "foo" +# Set 'foo' as custom color palette +palette = 'foo' # Define custom colors [palettes.foo] # Overwrite existing color -blue = "21" +blue = '21' # Define new color -mustard = "#af8700" +mustard = '#af8700' ``` ### デフォルトのプロンプトフォーマット @@ -205,7 +240,7 @@ mustard = "#af8700" デフォルトの `format` は、空または `format` が指定されていない場合、プロンプトのフォーマットを定義するために使用されます。 デフォルトは次のとおりです。 ```toml -format = "$all" +format = '$all' # Which is equivalent to format = """ @@ -236,7 +271,9 @@ $elixir\ $elm\ $erlang\ $golang\ +$guix_shell\ $haskell\ +$haxe\ $helm\ $java\ $julia\ @@ -245,6 +282,7 @@ $lua\ $nim\ $nodejs\ $ocaml\ +$opa\ $perl\ $php\ $pulumi\ @@ -281,6 +319,7 @@ $jobs\ $battery\ $time\ $status\ +$os\ $container\ $shell\ $character""" @@ -289,8 +328,8 @@ $character""" デフォルトのフォーマットを拡張したいだけなら、`$all`を使用できます。 フォーマットに明示的に追加したモジュールは重複しません。 例: ```toml -# ディレクトリを2行目に移動 -format = "$all$directory$character" +# Move the directory to the second line +format = '$all$directory$character' ``` ## AWS @@ -305,28 +344,30 @@ format = "$all$directory$character" [AWSume](https://awsu.me)を使う場合、環境変数`AWSUME_PROFILE`からプロファイルが、環境変数`AWSUME_EXPIRATION`から資格情報の有効期限が読み込まれます。 +When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key. + ### オプション | オプション | デフォルト | 説明 | | ------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | `format` | `'on [$symbol($profile )(\($region\) )(\[$duration\] )]($style)'` | module のフォーマットです。 | -| `symbol` | `"☁️ "` | 現在のAWSプロファイルを表示する前に表示される記号です。 | -| `region_aliases` | | AWS名に加えて表示するリージョンのエイリアスです。 | -| `profile_aliases` | | AWS名に加えて表示するプロファイルのエイリアスです。 | -| `style` | `"bold yellow"` | モジュールのスタイルです。 | +| `symbol` | `'☁️ '` | 現在のAWSプロファイルを表示する前に表示される記号です。 | +| `region_aliases` | `{}` | AWS名に加えて表示するリージョンのエイリアスです。 | +| `profile_aliases` | `{}` | AWS名に加えて表示するプロファイルのエイリアスです。 | +| `style` | `'bold yellow'` | モジュールのスタイルです。 | | `expiration_symbol` | `X` | この記号は一時的な資格情報が有効期限切れの場合に表示されます。 | | `disabled` | `false` | `aws`モジュールを無効にします。 | | `force_display` | `false` | `true`の場合、`credentials`、`credential_process`または`sso_start_url`が設定されていない場合でも情報を表示します。 | ### 変数 -| 変数 | 設定例 | 説明 | -| --------- | ---------------- | ---------------------- | -| region | `ap-northeast-1` | 現在のAWSリージョン | -| profile | `astronauts` | 現在のAWSプロファイル | -| duration | `2h27m20s` | 一時的な資格情報の有効期限 | -| symbol | | オプション `記号` の値をミラーする | -| style\* | | オプション `style` の値をミラーする | +| 変数 | 設定例 | 説明 | +| --------- | ---------------- | ----------------------- | +| region | `ap-northeast-1` | 現在のAWSリージョン | +| profile | `astronauts` | 現在のAWSプロファイル | +| duration | `2h27m20s` | 一時的な資格情報の有効期限 | +| symbol | | オプション `symbol` の値をミラーする | +| style\* | | オプション `style` の値をミラーする | *: この変数は、スタイル文字列の一部としてのみ使用することができます。 @@ -335,13 +376,15 @@ format = "$all$directory$character" #### すべてを表示 ```toml +# ~/.config/starship.toml + [aws] format = 'on [$symbol($profile )(\($region\) )]($style)' -style = "bold blue" -symbol = "🅰 " +style = 'bold blue' +symbol = '🅰 ' [aws.region_aliases] -ap-southeast-2 = "au" -us-east-1 = "va" +ap-southeast-2 = 'au' +us-east-1 = 'va' [aws.profile_aliases] CompanyGroupFrobozzOnCallAccess = 'Frobozz' ``` @@ -352,12 +395,12 @@ CompanyGroupFrobozzOnCallAccess = 'Frobozz' # ~/.config/starship.toml [aws] -format = "on [$symbol$region]($style) " -style = "bold blue" -symbol = "🅰 " +format = 'on [$symbol$region]($style) ' +style = 'bold blue' +symbol = '🅰 ' [aws.region_aliases] -ap-southeast-2 = "au" -us-east-1 = "va" +ap-southeast-2 = 'au' +us-east-1 = 'va' ``` #### プロファイルを表示 @@ -366,34 +409,48 @@ us-east-1 = "va" # ~/.config/starship.toml [aws] -format = "on [$symbol$profile]($style) " -style = "bold blue" -symbol = "🅰 " +format = 'on [$symbol$profile]($style) ' +style = 'bold blue' +symbol = '🅰 ' [aws.profile_aliases] Enterprise_Naming_Scheme-voidstars = 'void**' ``` ## Azure -`azure` モジュールは、現在のAzureサブスクリプションを表示します。 これは、 `~/.azure/azureProfile.json` ファイルで定義されているデフォルトのサブスクリプションの名前の表示に基づいています。 +`azure` モジュールは、現在のAzureサブスクリプションを表示します。 これは、 `~/.azure/azureProfile.json` ファイルで定義されているデフォルトのサブスクリプション名またはユーザー名の表示に基づいています。 ### オプション | 変数 | デフォルト | 説明 | | ---------- | ---------------------------------------- | ----------------------- | -| `format` | `"on [$symbol($subscription)]($style) "` | Azure module のフォーマットです。 | -| `symbol` | `"ﴃ "` | フォーマットで使用される記号です。 | -| `style` | `"blue bold"` | フォーマットで使用されるスタイルです。 | +| `format` | `'on [$symbol($subscription)]($style) '` | Azure module のフォーマットです。 | +| `symbol` | `'ﴃ '` | フォーマットで使用される記号です。 | +| `style` | `'blue bold'` | フォーマットで使用されるスタイルです。 | | `disabled` | `true` | `azure`モジュールを無効にします。 | ### 設定例 +#### サブスクリプション名を表示 + +```toml +# ~/.config/starship.toml + +[azure] +disabled = false +format = 'on [$symbol($subscription)]($style) ' +symbol = 'ﴃ ' +style = 'blue bold' +``` + +#### ユーザー名を表示 + ```toml # ~/.config/starship.toml [azure] disabled = false -format = "on [$symbol($subscription)]($style) " +format = "on [$symbol($username)]($style) " symbol = "ﴃ " style = "blue bold" ``` @@ -406,12 +463,12 @@ style = "blue bold" | オプション | デフォルト | 説明 | | -------------------- | --------------------------------- | ------------------------- | -| `full_symbol` | `" "` | バッテリーが満タンのときに表示される記号です。 | -| `charging_symbol` | `" "` | バッテリーの充電中に表示される記号です。 | -| `discharging_symbol` | `" "` | バッテリーが放電しているときに表示される記号です。 | -| `unknown_symbol` | `" "` | バッテリー状態が不明なときに表示される記号です。 | -| `empty_symbol` | `" "` | バッテリーが空のときに表示される記号です。 | -| `format` | `"[$symbol$percentage]($style) "` | moduleのフォーマットです。 | +| `full_symbol` | `' '` | バッテリーが満タンのときに表示される記号です。 | +| `charging_symbol` | `' '` | バッテリーの充電中に表示される記号です。 | +| `discharging_symbol` | `' '` | バッテリーが放電しているときに表示される記号です。 | +| `unknown_symbol` | `' '` | バッテリー状態が不明なときに表示される記号です。 | +| `empty_symbol` | `' '` | バッテリーが空のときに表示される記号です。 | +| `format` | `'[$symbol$percentage]($style) '` | module のフォーマットです。 | | `display` | [link](#battery-display) | モジュールの閾値とスタイルを表示します。 | | `disabled` | `false` | `battery`モジュールを無効にします。 | @@ -421,9 +478,9 @@ style = "blue bold" # ~/.config/starship.toml [battery] -full_symbol = "🔋 " -charging_symbol = "⚡️ " -discharging_symbol = "💀 " +full_symbol = '🔋 ' +charging_symbol = '⚡️ ' +discharging_symbol = '💀 ' ``` ### バッテリーの表示 @@ -433,7 +490,7 @@ discharging_symbol = "💀 " ```toml [[battery.display]] threshold = 10 -style = "bold red" +style = 'bold red' ``` `charging_symbol`と`discharging_symbol`オプションのデフォルト値はそれぞれ`battery`の `charging_symbol`と`discharging_symbol`になります。 @@ -445,23 +502,23 @@ style = "bold red" | オプション | デフォルト | 説明 | | -------------------- | ------------ | -------------------------------------------------------------------------------------- | | `threshold` | `10` | バッテリーが表示される上限です。 | -| `style` | `"red bold"` | displayオプションが使用されている場合のスタイルです。 | +| `style` | `'red bold'` | displayオプションが使用されている場合のスタイルです。 | | `charging_symbol` | | displayオプションが使用されている場合はこののシンボルが表示されます。デフォルトはバッテリーの `charging_symbol` オプションと同じになります。 | | `discharging_symbol` | | displayオプションが使用されている場合はこののシンボルが表示されます。デフォルトはバッテリーの `discharging_symbol` オプションと同じになります。 | #### 設定例 ```toml -[[battery.display]] # "bold red"(太字の赤)でdischarging_symbolをバッテーリー残量が0%から10%の間で表示 +[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10% threshold = 10 -style = "bold red" +style = 'bold red' -[[battery.display]] # "bold yellow"(太字の黄)で記号💦をバッテリー残量が10%から30%の間で表示 +[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30% threshold = 30 -style = "bold yellow" -discharging_symbol = "💦" +style = 'bold yellow' +discharging_symbol = '💦' -# バッテリー残量が30%を超えると、バッテリーインジケータは表示されません +# when capacity is over 30%, the battery indicator will not be displayed ``` ## Buf @@ -475,22 +532,22 @@ discharging_symbol = "💦" | オプション | デフォルト | 説明 | | ------------------- | ----------------------------------------------- | -------------------------- | -| `format` | `"with [$symbol($version )]($style)"` | `buf`モジュールの形式。 | -| `version_format` | `"v${raw}"` | バージョンのフォーマット。 | -| `symbol` | `"🦬 "` | Bufのバージョンを表示する前に使用される記号です。 | +| `format` | `'with [$symbol($version )]($style)'` | `buf`モジュールの形式。 | +| `version_format` | `'v${raw}'` | バージョンのフォーマット。 | +| `symbol` | `'🦬 '` | Bufのバージョンを表示する前に使用される記号です。 | | `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか | -| `detect_files` | `["buf.yaml", "buf.gen.yaml", "buf.work.yaml"]` | どのファイル名がこのモジュールをアクティブにするか | +| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | どのファイル名がこのモジュールをアクティブにするか | | `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか | -| `style` | `"bold blue"` | モジュールのスタイルです。 | +| `style` | `'bold blue'` | モジュールのスタイルです。 | | `disabled` | `false` | `elixir`モジュールを無効にします。 | ### 変数 -| 変数 | 設定例 | 説明 | -| --------- | -------- | ---------------------- | -| `version` | `v1.0.0` | `buf`のバージョン | -| `symbol` | | オプション `記号` の値をミラーする | -| `style`* | | オプション `style` の値をミラーする | +| 変数 | 設定例 | 説明 | +| --------- | -------- | ----------------------- | +| `version` | `v1.0.0` | `buf`のバージョン | +| `symbol` | | オプション `symbol` の値をミラーする | +| `style`* | | オプション `style` の値をミラーする | *: この変数は、スタイル文字列の一部としてのみ使用することができます。 @@ -500,7 +557,7 @@ discharging_symbol = "💦" # ~/.config/starship.toml [buf] -symbol = "🦬 " +symbol = '🦬 ' ``` ## Bun @@ -514,22 +571,22 @@ The `bun` module shows the currently installed version of the [bun](https://bun. | オプション | デフォルト | 説明 | | ------------------- | ------------------------------------ | ------------------------------------------------------ | -| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 | -| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 | -| `symbol` | `"🍞 "` | A format string representing the symbol of Node.js. | +| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 | +| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 | +| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. | | `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか | -| `detect_files` | `["bun.lockb", "bunfig.toml"]` | どのファイル名がこのモジュールをアクティブにするか | +| `detect_files` | `['bun.lockb', 'bunfig.toml']` | どのファイル名がこのモジュールをアクティブにするか | | `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか | -| `style` | `"bold red"` | モジュールのスタイルです。 | +| `style` | `'bold red'` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `bun` module. | ### 変数 -| 変数 | 設定例 | 説明 | -| --------- | -------- | ---------------------- | -| version | `v0.1.4` | The version of `bun` | -| symbol | | オプション `記号` の値をミラーする | -| style\* | | オプション `style` の値をミラーする | +| 変数 | 設定例 | 説明 | +| --------- | -------- | ----------------------- | +| version | `v0.1.4` | The version of `bun` | +| symbol | | オプション `symbol` の値をミラーする | +| style\* | | オプション `style` の値をミラーする | *: この変数は、スタイル文字列の一部としてのみ使用することができます。 @@ -539,7 +596,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun. # ~/.config/starship.toml [bun] -format = "via [🍔 $version](bold green) " +format = 'via [🍔 $version](bold green) ' ``` ## C @@ -550,24 +607,24 @@ 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"]` | どの拡張子がこのモジュールをアクティブにするか | +| `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"` | モジュールのスタイルです。 | +| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | コンパイラを検出する方法 | +| `style` | `'bold 149'` | モジュールのスタイルです。 | | `disabled` | `false` | `c`モジュールを無効にします。 | ### 変数 -| 変数 | 設定例 | 説明 | -| ------- | ------ | ---------------------- | -| name | clang | コンパイラ名 | -| version | 13.0.0 | コンパイラのバージョン | -| symbol | | オプション `記号` の値をミラーする | -| style | | オプション `style` の値をミラーする | +| 変数 | 設定例 | 説明 | +| ------- | ------ | ----------------------- | +| name | clang | コンパイラ名 | +| version | 13.0.0 | コンパイラのバージョン | +| symbol | | オプション `symbol` の値をミラーする | +| style | | オプション `style` の値をミラーする | `version`はデフォルトのフォーマットではないことに注意してください。 @@ -575,7 +632,7 @@ format = "via [🍔 $version](bold green) " `commands`オプションは、コンパイラのバージョンと名前を判別するためのコマンドのリストを受け入れます。 -各コマンドは、実行可能ファイル名の後に引数を続けるリストとして表されます。通常は`["mycc", "--version"]`のようになります。 StarshipはSTDOUTから結果が得られるまで各コマンドを実行を試みます。 +Each command is represented as a list of the executable name, followed by its arguments, usually something like `['mycc', '--version']`. StarshipはSTDOUTから結果が得られるまで各コマンドを実行を試みます。 もし、Cコンパイラがこのモジュールでサポートされていない場合は、[GitHubで問題を提起する](https://github.com/starship/starship/)ことでリクエストできます。 @@ -585,14 +642,14 @@ format = "via [🍔 $version](bold green) " # ~/.config/starship.toml [c] -format = "via [$name $version]($style)" +format = 'via [$name $version]($style)' ``` ## 文字 `character`モジュールは、端末でテキストが入力される場所の横に文字(通常は矢印)を表示します。 -文字は、最後のコマンドが成功したかどうかを示します。 表し方は下記の2つです。 +characterは、最後のコマンドが成功したかどうかを示します。 表し方は下記の2つです。 - 色の変更 (`赤`/`緑`) - プロンプトの表示の変更 (`❯`/`✖`) @@ -607,16 +664,16 @@ format = "via [$name $version]($style)" ### オプション -| オプション | デフォルト | 説明 | -| --------------------------- | -------------------- | ------------------------------------------------------ | -| `format` | `"$symbol"` | テキスト入力の前に使用される書式文字列。 | -| `success_symbol` | `"[❯](bold green)"` | 前のコマンドが成功した場合にテキスト入力の前に使用される書式文字列です。 | -| `error_symbol` | `"[❯](bold red)"` | 前のコマンドが失敗した場合にテキスト入力の前に使用される書式文字列です。 | -| `vimcmd_symbol` | `"[❮](bold green)"` | シェルが vim ノーマルモードの場合にテキスト入力の前に使用されるフォーマット文字列。 | -| `vimcmd_replace_one_symbol` | `"[❮](bold purple)"` | シェルがvimの`replace_one`モードの場合にテキスト入力の前に使用されるフォーマット文字列です。 | -| `vimcmd_replace_symbol` | `"[❮](bold purple)"` | シェルがvimの置換モードの場合にテキスト入力の前に使用されるフォーマット文字列。 | -| `vimcmd_visual_symbol` | `"[❮](bold yellow)"` | シェルがvimの置換モードの場合にテキスト入力の前に使用されるフォーマット文字列。 | -| `disabled` | `false` | `character`モジュールを無効にします。 | +| オプション | デフォルト | 説明 | +| --------------------- |