docs(i18n): New Crowdin updates (#2362)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Chinese Simplified)

* New translations README.md (Chinese Simplified)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Turkish)

* New translations README.md (Russian)

* New translations README.md (Portuguese)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Chinese Simplified)

* New translations README.md (Chinese Traditional)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Vietnamese)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Korean)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Portuguese)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Korean)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Russian)

* New translations README.md (Vietnamese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Chinese Simplified)

* New translations README.md (Turkish)

* New translations README.md (Chinese Traditional)

* New translations README.md (Chinese Traditional)

* New translations README.md (Chinese Traditional)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Spanish)

* New translations README.md (Japanese)

* New translations README.md (Korean)

* New translations README.md (Chinese Simplified)

* 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 Traditional)

* New translations README.md (Vietnamese)

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Korean)

* New translations README.md (Korean)

* New translations README.md (Korean)

* New translations README.md (Korean)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (French)

* New translations README.md (Portuguese)

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Vietnamese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Chinese Simplified)

* New translations README.md (Turkish)

* New translations README.md (Russian)

* New translations README.md (Polish)

* New translations README.md (Spanish)

* New translations README.md (Dutch)

* New translations README.md (Korean)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Arabic)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (French)

* New translations README.md (Arabic)

* New translations README.md (French)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Dutch)

* New translations README.md (Korean)

* New translations README.md (Korean)

* New translations README.md (Japanese)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (German)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (Spanish)

* New translations README.md (Polish)

* New translations README.md (Portuguese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Vietnamese)

* New translations README.md (Vietnamese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Portuguese)

* New translations README.md (Chinese Simplified)

* New translations README.md (Chinese Simplified)

* New translations README.md (Turkish)

* New translations README.md (Turkish)

* New translations README.md (Russian)

* New translations README.md (Russian)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Portuguese)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Vietnamese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Russian)

* New translations README.md (Chinese Simplified)

* New translations README.md (Turkish)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Korean)

* New translations README.md (German)

* New translations README.md (Turkish)

* New translations README.md (Russian)

* New translations README.md (Portuguese)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Chinese Simplified)

* New translations README.md (Chinese Traditional)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Vietnamese)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Korean)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Portuguese)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Korean)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Russian)

* New translations README.md (Vietnamese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Chinese Simplified)

* New translations README.md (Turkish)

* New translations README.md (Polish)

* New translations README.md (Dutch)

* New translations README.md (Japanese)

* New translations README.md (Italian)

* New translations README.md (German)

* New translations README.md (Portuguese)

* New translations README.md (Sorani (Kurdish))

* New translations README.md (Portuguese, Brazilian)

* New translations README.md (Vietnamese)

* New translations README.md (Chinese Traditional)

* New translations README.md (Russian)

* New translations README.md (Chinese Simplified)

* New translations README.md (Turkish)

* New translations README.md (Arabic)

* New translations README.md (Spanish)

* New translations README.md (French)

* New translations README.md (Korean)

* New translations README.md (Italian)

* New translations README.md (Italian)
This commit is contained in:
Matan Kushner
2021-03-15 13:18:42 -04:00
committed by GitHub
parent 052b56fe10
commit 3a4c9063e9
108 changed files with 4200 additions and 2094 deletions
+13 -2
View File
@@ -94,7 +94,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
#### Powershell
Add the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the `$PROFILE` variable in PowerShell. Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
Add the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the `$PROFILE` variable in PowerShell. 通常、パスは `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` または -Nix 上では `~/.config/powershell/Microsoft.PowerShell_profile.ps1` です。
```sh
Invoke-Expression (&starship init powershell)
@@ -115,7 +115,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
::: warning Only elvish v0.15 or higher is supported. :::
Add the following to the end of `~/.elvish/rc.elv`:
`~/.elvish/rc.elv` の最後に以下を追記してください。
```sh
# ~/.elvish/rc.elv
@@ -123,3 +123,14 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
eval (starship init elvish)
```
#### Tcsh
`~/.tcshrc` の最後に以下を追加します:
```sh
# ~/.tcshrc
eval `starship init tcsh`
```
+1 -1
View File
@@ -82,7 +82,7 @@ starship_precmd_user_func="set_win_title"
ここで、 `<color>` は色を指定します(以下で述べます)。 `fg:<color>``<color>` は現在同様の動作ですが、将来変更される可能性があります。 文字列中の単語の順序は関係ありません。
The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `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` 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` を他の単語と一緒に使用することはエラーになるかもしれません。
色は以下のいずれか1つを指定できます。
+177 -126
View File
@@ -9,14 +9,14 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
Starshipのすべての設定は、この[TOML](https://github.com/toml-lang/toml)ファイルで行われます。
```toml
# プロンプトの先頭に改行を表示しません
add_newline = false
# Inserts a blank line between shell prompts
add_newline = true
# プロンプトの「❯」記号を「➜」に置き換えます
[character] # 設定しているモジュールの名前は「character」です
success_symbol = "[➜](bold green)" # success_symbol」セグメントは「ボールドグリーン」の色で「➜」に設定されています
# 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"
# package モジュールを無効にし、プロンプトから完全に隠します
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
```
@@ -80,7 +80,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
例:
- `[on](red bold)` は文字列 `on` に太字のテキストを赤色で表示します。
- `[ $version](bold green)` はシンボル `` の後に変数 `バージョン`の内容を表示します 緑色の太字を付けています
- `[ $version](bold green)` will print a symbol `` followed by the content of variable `version`, with bold text colored green.
- `[a [b](red) c](green)``a b c``b` だけ赤色に表示し、 `a``c` を緑色に表示します。
#### スタイルの設定
@@ -142,11 +142,11 @@ format = '''
### オプション
| オプション | デフォルト | 説明 |
| -------------- | ------------------------------ | ---------------------------------------- |
| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
| `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 |
| `add_newline` | `true` | プロンプトの開始前に新しい行を追加します。 |
| オプション | デフォルト | 説明 |
| -------------- | ------------------------------ | ----------------------------------------- |
| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
| `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 |
| `add_newline` | `true` | Inserts blank line between shell prompts. |
### 設定例
@@ -163,7 +163,7 @@ format = """
scan_timeout = 10
# プロンプトの 先頭での改行を無効にする
# Disable the blank line at the start of the prompt
add_newline = false
```
@@ -208,6 +208,7 @@ $purescript\
$python\
$ruby\
$rust\
$scala\
$swift\
$terraform\
$vagrant\
@@ -238,15 +239,17 @@ $character"""
[aws-vault](https://github.com/99designs/aws-vault)を使用する場合、プロファイル は`AWS_VAULT`env varから読み取られます。
When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
### オプション
| オプション | デフォルト | 説明 |
| ---------------- | ------------------------------------------------ | ----------------------------- |
| `format` | `'on [$symbol$profile(\($region\))]($style) '` | moduleのフォーマットです。 |
| `symbol` | `"☁️ "` | 現在のAWSプロファイルを表示する前に表示される記号です。 |
| `region_aliases` | | AWS名に加えて表示するリージョンのエイリアスです。 |
| `style` | `"bold yellow"` | モジュールのスタイルです。 |
| `disabled` | `false` | `aws`モジュールを無効にします。 |
| オプション | デフォルト | 説明 |
| ---------------- | --------------------------------------------------- | ----------------------------- |
| `format` | `'on [$symbol($profile )(\($region\) )]($style)'` | moduleのフォーマットです。 |
| `symbol` | `"☁️ "` | 現在のAWSプロファイルを表示する前に表示される記号です。 |
| `region_aliases` | | AWS名に加えて表示するリージョンのエイリアスです。 |
| `style` | `"bold yellow"` | モジュールのスタイルです。 |
| `disabled` | `false` | `aws`モジュールを無効にします。 |
### 変数
@@ -257,7 +260,7 @@ $character"""
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -267,7 +270,7 @@ $character"""
# ~/.config/starship.toml
[aws]
format = 'on [$symbol$profile(\($region\))]($style) '
format = 'on [$symbol($profile )(\($region\) )]($style)'
style = "bold blue"
symbol = "🅰 "
[aws.region_aliases]
@@ -302,7 +305,7 @@ symbol = "🅰 "
## バッテリー
`battery`モジュールは、デバイスのバッテリー残量と現在の充電状態を示します。 モジュールは、デバイスのバッテリー残量が10%未満の場合にのみ表示されます。
The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### オプション
@@ -331,7 +334,7 @@ discharging_symbol = "💀"
### バッテリーの表示
`display` オプションを使用して、バッテリーインジケーターを表示するタイミング(閾値)と外観(スタイル)を定義します。 `display` が提供されない場合、 デフォルトは次のとおりです。
The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. デフォルトは次のとおりです。
```toml
[[battery.display]]
@@ -341,7 +344,7 @@ style = "bold red"
#### オプション
`display`オプションは、次の表の通りです。
The `display` option is an array of the following table.
| オプション | 説明 |
| ----------- | ------------------------------ |
@@ -365,14 +368,14 @@ style = "bold yellow"
## 文字
`character`モジュールは、端末でテキストが入力される場所の横に文字(通常は矢印)を表示します。
The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
文字は、最後のコマンドが成功したかどうかを示します。 表し方は下記の2つです。
The character will tell you whether the last command was successful or not. It can do this in two ways:
- 色の変更 (`赤`/`緑`)
- プロンプトの表示の変更 (``/`✖`)
デフォルトでは、色だけが変更されます。 If you also want to change it's shape take a look at [this example](#with-custom-error-shape).
By default it only changes color. If you also want to change it's shape take a look at [this example](#with-custom-error-shape).
::: warning `error_symbol` is not supported on elvish shell. :::
@@ -435,7 +438,7 @@ The `cmake` module shows the currently installed version of CMake. By default th
| オプション | デフォルト | 説明 |
| ------------------- | -------------------------------------- | -------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
| `symbol` | `" "` | The symbol used before the version of cmake. |
| `symbol` | `" "` | The symbol used before the version of cmake. |
| `detect_extensions` | `[]` | Which extensions should trigger this moudle |
| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -450,19 +453,19 @@ The `cmake` module shows the currently installed version of CMake. By default th
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
## コマンド実行時間
`cmd_duration`モジュールは、最後のコマンドの実行にかかった時間を示します。 モジュールが表示されるのは、コマンドが2秒以上かかった場合、または`min_time`値が存在する場合のみです。
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
::: warning BashでDEBUGトラップをhookしない
::: warning Do not hook the DEBUG trap in Bash
`bash`でStarshipを実行している場合、 `eval $(starship init $0)`実行した後に`DEBUG`トラップをフックしないでください。そうしないと、このモジュールが**おそらくですが**壊れます。
If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
:::
preexecのような機能を必要とするBashユーザーは、 [rcalorasbash_preexecフレームワーク](https://github.com/rcaloras/bash-preexec)を使用できます。 `eval $(starship init $0)` を実行する前に、`preexec_functions`、および`precmd_functions`定義するだけで、通常どおり続行します。
Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
### オプション
@@ -489,7 +492,7 @@ Showing desktop notifications requires starship to be built with `rust-notify` s
| duration | `16m40s` | コマンドの実行時間 |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -503,11 +506,11 @@ format = "underwent [$duration](bold yellow)"
## Conda
`$CONDA_DEFAULT_ENV`が設定されている場合、`conda`モジュールは現在のcondaの環境を表示します。
The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
Note: これはconda自身の プロンプト修飾子 を抑制しません。`conda config --set changeps1 False` で実行することができます。
This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
@@ -530,7 +533,7 @@ Note: これはconda自身の プロンプト修飾子 を抑制しません。`
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -543,7 +546,7 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
`crystal`モジュールには、現在インストールされているCrystalのバージョンが表示されます。 By default the module will be shown if any of the following conditions are met:
The `crystal` module shows the currently installed version of Crystal. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`shard.yml`ファイルが含まれている
- カレントディレクトリに`.cr`の拡張子のファイルが含まれている
@@ -568,7 +571,7 @@ format = "[$symbol$environment](dimmed green) "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -607,7 +610,7 @@ The `dart` module shows the currently installed version of Dart. By default the
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -620,11 +623,11 @@ format = "via [🔰 $version](bold red) "
## ディレクトリ
`directory`モジュールには、現在のディレクトリへのパスが表示され、3つの親フォルダは切り捨てられます。 ディレクトリは、現在のgitリポジトリであるとルートとなります。
The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
fishスタイルのpwdオプションを使用すると、切り捨てられたパスを非表示にする代わりに、オプションで有効にした番号に基づいて各ディレクトリの短縮名が表示されます。
When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
例として、`~/Dev/Nix/nixpkgs/pkgs`で、`nixpkgs`がリポジトリルートであり、オプションが`1`に設定されている場合を挙げます。 以前は`nixpkgs/pkgs`でしたが、`~/D/N/nixpkgs/pkgs`が表示されます。
For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### オプション
@@ -641,7 +644,7 @@ fishスタイルのpwdオプションを使用すると、切り捨てられた
| `home_symbol` | `"~"` | The symbol indicating home directory. |
<details>
<summary>このモジュールは、どのようにディレクトリを表示するかについての高度なオプションをいくつか持っています。</summary>
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
| Advanced Option | デフォルト | 説明 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -668,7 +671,7 @@ fishスタイルのpwdオプションを使用すると、切り捨てられた
| path | `"D:/Projects"` | The current directory path |
| style\* | `"black bold dimmed"` | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -682,7 +685,7 @@ truncation_symbol = "…/"
## Docker Context
`docker_context`モジュールは、 [Dockerコンテキスト](https://docs.docker.com/engine/context/working-with-contexts/)`デフォルト`に設定されていない場合、現在アクティブな <1>Dockerコンテキストを表示します。
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`.
### オプション
@@ -705,7 +708,7 @@ truncation_symbol = "…/"
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -718,7 +721,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
`dotnet` モジュールはカレントディレクトリに関係する.NET Core SDKのバージョンを表示します。 もし SDKは現在のディレクトリに固定されているのであれば、その固定されたバージョンが表示されます。 それ以外の場合、モジュール SDKの最新のインストールバージョンを示します。
The `dotnet` module shows the relevant version of the .NET Core SDK for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -734,7 +737,7 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
内部的に、このモジュールは自身のバージョン検知のメカニズムを利用します。 `dotnet --version` を実行するより2倍速く実行できますが、.NET project一般的でないディレクトリlayoutの場合は間違ったバージョンが示されてしまうことがあります。 速度よりも精度が重要な場合は、次の方法でメカニズムを無効にできます。 モジュールオプションで`heuristic = false `を設定します。
Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
The module will also show the Target Framework Moniker (<https://docs.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-framework-versions>) when there is a csproj file in the current directory.
@@ -760,7 +763,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -800,7 +803,7 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -813,7 +816,7 @@ symbol = "🔮 "
## Elm
`elm`モジュールは、現在インストールされているElmのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
The `elm` module shows the currently installed version of Elm. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`elm.json`ファイルが含まれている
- カレントディレクトリに`elm-package.json`ファイルが含まれている
@@ -841,7 +844,7 @@ symbol = "🔮 "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -854,7 +857,7 @@ format = "via [ $version](cyan bold) "
## 環境変数
`env_var`モジュールは、選択された環境変数の現在の値を表示します。 次の条件のいずれかが満たされると、モジュールが表示されます。
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
- `variable`オプションが、既存の環境変数と一致する
- `variable`オプションが定義されておらず、`default`オプションが定義されている
@@ -877,7 +880,7 @@ format = "via [ $version](cyan bold) "
| symbol | | オプション `記号` の値をミラーする |
| style\* | `black bold dimmed` | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -916,7 +919,7 @@ The `erlang` module shows the currently installed version of Erlang/OTP. By defa
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -952,7 +955,7 @@ The `gcloud` module shows the current configuration for [`gcloud`](https://cloud
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -989,7 +992,7 @@ asia-northeast1 = "an1"
## Git ブランチ
`git_branch`モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを表示します。
The `git_branch` module shows the active branch of the repo in your current directory.
### オプション
@@ -1014,7 +1017,7 @@ asia-northeast1 = "an1"
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1050,7 +1053,7 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
| hash | `b703eb3` | The current git commit hash |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1064,7 +1067,7 @@ tag_symbol = "🔖 "
## Git の進行状態
`git_state`モジュールはgitディレクトリの進行状態を表します。 (例: _REBASING_, _BISECTING_, その他) 進捗情報がある場合(例: REBASING 3/10)はその情報も表示されます。
The `git_state` module will show in directories which are part of a git repository, and where there is an operation in progress, such as: _REBASING_, _BISECTING_, etc. If there is progress information (e.g., REBASING 3/10), that information will be shown too.
### オプション
@@ -1090,7 +1093,7 @@ tag_symbol = "🔖 "
| progress_total | `2` | The total operation progress |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1104,7 +1107,7 @@ cherry_pick = "[🍒 PICKING](bold red)"
## Git の状態
`git_status`モジュールは、現在のディレクトリのリポジトリの状態を表すシンボルを表示します。
The `git_status` module shows symbols representing the state of the repo in your current directory.
### オプション
@@ -1141,7 +1144,7 @@ The following variables can be used in `format`:
| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
| style\* | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
The following variables can be used in `diverged`:
@@ -1187,7 +1190,7 @@ behind = "⇣${count}"
## Golang
`golang`モジュールは、現在インストールされているGolangのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
The `golang` module shows the currently installed version of Golang. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`go.mod`ファイルが含まれている
- カレントディレクトリに`go.sum`ファイルが含まれている
@@ -1218,7 +1221,7 @@ behind = "⇣${count}"
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1256,7 +1259,7 @@ The `helm` module shows the currently installed version of Helm. By default the
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1269,7 +1272,7 @@ format = "via [⎈ $version](bold white) "
## ホスト名
`hostname`モジュールには、システムのホスト名が表示されます。
The `hostname` module shows the system hostname.
### オプション
@@ -1288,7 +1291,7 @@ format = "via [⎈ $version](bold white) "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1304,7 +1307,7 @@ disabled = false
## Java
`java`モジュールは、現在インストールされているJavaのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
The `java` module shows the currently installed version of Java. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `.deps.edn`, `project.clj`, or `build.boot` file
- The current directory contains a file with the `.java`, `.class`, `.gradle`, `.jar`, `.clj`, or `.cljc` extension
@@ -1329,7 +1332,7 @@ disabled = false
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1342,7 +1345,13 @@ symbol = "🌟 "
## ジョブ
`jobs`モジュールには、実行中のジョブの現在の数が表示されます。 このモジュールは、実行中のバックグラウンドジョブがある場合にのみ表示されます。 1つ以上のジョブがある、または`threshold`に指定した値以上にジョブがある場合は実行中のジョブの数を表示します。
The `jobs` module shows the current number of jobs running. The module will be shown only if there are background jobs running. The module will show the number of jobs running if there is more than 1 job, or more than the `threshold` config value, if it exists.
::: warning
This module is not supported on tcsh.
:::
### オプション
@@ -1362,7 +1371,7 @@ symbol = "🌟 "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1376,7 +1385,7 @@ threshold = 4
## Julia
`julia`モジュールは、現在インストールされているJuliaのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
The `julia` module shows the currently installed version of Julia. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`Project.toml`ファイルが含まれている
- カレントディレクトリに`Manifest.toml`ファイルが含まれている
@@ -1402,7 +1411,7 @@ threshold = 4
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1440,7 +1449,7 @@ The `kotlin` module shows the currently installed version of Kotlin. By default
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1465,7 +1474,7 @@ Displays the current Kubernetes context name and, if set, the namespace from the
::: tip
このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled``false`に設定します。
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1488,7 +1497,7 @@ Displays the current Kubernetes context name and, if set, the namespace from the
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1504,7 +1513,7 @@ disabled = false
## 改行
`line_break`モジュールは、プロンプトを2行に分割します。
The `line_break` module separates the prompt into two lines.
### オプション
@@ -1550,7 +1559,7 @@ The `lua` module shows the currently installed version of Lua. By default the mo
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1563,14 +1572,13 @@ format = "via [🌕 $version](bold blue) "
## メモリ使用量
`memory_usage</ 0>モジュールは、現在のシステムメモリとスワップ使用量を示します。</p>
The `memory_usage` module shows current system memory and swap usage.
<p spaces-before="0">デフォルトでは、システムスワップの合計がゼロ以外の場合、スワップ使用量が表示されます。</p>
By default the swap usage is displayed if the total system swap is non-zero.
<p spaces-before="0">::: tip</p>
::: tip
<p spaces-before="0">このモジュールはデフォルトで無効になっています。
有効にするには、設定ファイルで<code>disabled``false`に設定します。
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1611,7 +1619,7 @@ style = "bold dimmed green"
## Mercurial ブランチ
` hg_branch `モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを示します。
The `hg_branch` module shows the active branch of the repo in your current directory.
### オプション
@@ -1632,7 +1640,7 @@ style = "bold dimmed green"
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1674,7 +1682,7 @@ The `nim` module shows the currently installed version of Nim. By default the mo
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1688,7 +1696,7 @@ symbol = "🎣 "
## Nix-shell
`nix_shell`モジュールは、nix-shell環境を示しています。 このモジュールは、nixシェル環境内にあるときに表示されます。
The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment.
### オプション
@@ -1710,7 +1718,7 @@ symbol = "🎣 "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1726,7 +1734,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## NodeJS
`nodejs`モジュールは、現在インストールされているNodeJSのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
The `nodejs` module shows the currently installed version of NodeJS. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`package.json`ファイルが含まれている
- The current directory contains a `.node-version` file
@@ -1739,7 +1747,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| オプション | デフォルト | 説明 |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
@@ -1755,7 +1763,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1797,7 +1805,7 @@ The `ocaml` module shows the currently installed version of OCaml. By default th
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1830,7 +1838,7 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1845,7 +1853,7 @@ symbol = "☁️ "
## パッケージのバージョン
`package`モジュールは、現在のディレクトリがパッケージのリポジトリである場合に表示され、現在のバージョンが表示されます。 The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- **npm** `npm`パッケージバージョンは、現在のディレクトリにある`package.json`から抽出されます
- **cargo** `cargo`パッケージバージョンは、現在のディレクトリにある`Cargo.toml`から抽出されます。
@@ -1878,7 +1886,7 @@ symbol = "☁️ "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1930,7 +1938,7 @@ format = "via [🦪 $version]($style) "
## PHP
`php`モジュールは、現在インストールされているPHPのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
The `php` module shows the currently installed version of PHP. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`composer.json`ファイルが含まれている
- The current directory contains a `.php-version` file
@@ -1956,7 +1964,7 @@ format = "via [🦪 $version]($style) "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -1994,7 +2002,7 @@ The `purescript` module shows the currently installed version of PureScript vers
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2007,7 +2015,7 @@ format = "via [$symbol$version](bold white)"
## Python
`python` モジュールは現在インストールされているPythonのバージョンと アクティブ化されている場合は現在のPython仮想環境を表示します。
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
@@ -2085,7 +2093,7 @@ detect_extensions = []
## Ruby
By default the `ruby` module shows the currently installed version of Ruby. 次の条件のいずれかが満たされると、モジュールが表示されます。
By default the `ruby` module shows the currently installed version of Ruby. The module will be shown if any of the following conditions are met:
- カレントディレクトリに`Gemfile`ファイルが含まれている
- The current directory contains a `.ruby-version` file
@@ -2111,7 +2119,7 @@ By default the `ruby` module shows the currently installed version of Ruby. 次
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2124,7 +2132,7 @@ symbol = "🔺 "
## Rust
By default the `rust` module shows the currently installed version of Rust. 次の条件のいずれかが満たされると、モジュールが表示されます。
By default the `rust` module shows the currently installed version of Rust. The module will be shown if any of the following conditions are met:
- カレントディレクトリに`Cargo.toml`ファイルが含まれている
- カレントディレクトリに`.rs`の拡張子のファイルが含まれている
@@ -2149,7 +2157,7 @@ By default the `rust` module shows the currently installed version of Rust. 次
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2160,13 +2168,55 @@ By default the `rust` module shows the currently installed version of Rust. 次
format = "via [⚙️ $version](red bold)"
```
## Scala
The `scala` module shows the currently installed version of Scala. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
- The current directory contains a file with the `.scala` or `.sbt` extension
- The current directory contains a directory named `.metals`
### オプション
| オプション | デフォルト | 説明 |
| ------------------- | ---------------------------------------- | ------------------------------------------------- |
| `format` | `"via [${symbol}(${version} )]($style)"` | moduleのフォーマットです。 |
| `detect_extensions` | `["sbt", "scala"]` | Which extensions should trigger this module. |
| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | Which filenames should trigger this module. |
| `detect_folders` | `[".metals"]` | Which folders should trigger this modules. |
| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
| `style` | `"red dimmed"` | モジュールのスタイルです。 |
| `disabled` | `false` | Disables the `scala` module. |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ---------------------- |
| version | `2.13.5` | The version of `scala` |
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: This variable can only be used as a part of a style string
### 設定例
```toml
# ~/.config/starship.toml
[scala]
symbol = "🌟 "
```
## Shell
The `shell` module shows an indicator for currently used shell.
::: tip
このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled``false`に設定します。
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2180,6 +2230,7 @@ The `shell` module shows an indicator for currently used shell.
| `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. |
| `format` | `$indicator` | moduleのフォーマットです。 |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2222,7 +2273,7 @@ The `shlvl` module shows the current SHLVL ("shell level") environment variable,
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2256,7 +2307,7 @@ The `singularity` module shows the current singularity image, if inside a contai
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2273,7 +2324,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled``false`に設定します。
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2307,7 +2358,7 @@ The `status` module displays the exit code of the previous command. The module w
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2326,7 +2377,7 @@ disabled = false
## Swift
By default the `swift` module shows the currently installed version of Swift. 次の条件のいずれかが満たされると、モジュールが表示されます。
By default the `swift` module shows the currently installed version of Swift. The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2351,7 +2402,7 @@ By default the `swift` module shows the currently installed version of Swift.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2374,7 +2425,7 @@ By default the terraform version is not shown, since this is slow for current ve
By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`.terraform`フォルダが含まれている
- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` or `.hcl` extensions
### オプション
@@ -2398,7 +2449,7 @@ By default the module will be shown if any of the following conditions are met:
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2426,7 +2477,7 @@ The `time` module shows the current **local** time. The `format` configuration v
::: tip
このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled``false`に設定します。
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2451,7 +2502,7 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
| time | `13:08:10` | The current time. |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2468,12 +2519,12 @@ time_range = "10:00:00-14:00:00"
## Username
The `username` module shows active user's username. 次の条件のいずれかが満たされると、モジュールが表示されます。
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- カレントユーザーがroot
- カレントユーザーが、ログインしているユーザーとは異なる
- ユーザーがSSHセッションとして接続されている
- `show_always`変数がtrueに設定されている
- The current user is root
- The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session
- The variable `show_always` is set to true
::: tip
@@ -2537,7 +2588,7 @@ The `vagrant` module shows the currently installed version of Vagrant. By defaul
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2550,7 +2601,7 @@ format = "via [⍱ $version](bold white) "
## Zig
By default the the `zig` module shows the currently installed version of Zig. 次の条件のいずれかが満たされると、モジュールが表示されます。
By default the the `zig` module shows the currently installed version of Zig. The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -2574,7 +2625,7 @@ By default the the `zig` module shows the currently installed version of Zig.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
### 設定例
@@ -2638,7 +2689,7 @@ The order in which custom modules are shown can be individually set by including
| symbol | オプション `記号` の値をミラーする |
| style\* | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
\*: This variable can only be used as a part of a style string
#### Custom command shell
+26 -22
View File
@@ -10,22 +10,22 @@
- **設定**: [matchaiのDotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- **プロンプト**: [Starship](https://starship.rs/)
## How do I get command completion as shown in the demo GIF?
## デモのGIFのようにコマンド補完はどうしたら使用できますか?
Completion support, or autocomplete, is provided by your shell of choice. In the case of the demo, the demo was done with [Fish Shell](https://fishshell.com/), which provides completions by default. If you use Z Shell (zsh), I'd suggest taking a look at [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 `を無効にする方法をお勧めします。
- Disabling modules is more explicit than omitting them from the top level `format`
- モジュールを無効化することは、トップレベルの`format`を削除するよりも明示的です。
- Starshipが更新されると、新しく作成されたモジュールがプロンプトに追加されます
## The docs say Starship is cross-shell. Why isn't my preferred shell supported?
## Starshipcross-shellとのことです。 私の好みのshellはサポートしていないようですが。
Starshipの構築方法は、事実上すべてのシェルのサポートを追加できるはずです。 Starshipのバイナリはステートレスであり、シェルに依存しないため、シェルがプロンプトのカスタマイズとシェルの拡張をサポートしている限り、Starshipを使用できます。
Starshipをbashで動作させる小さな例を次に示します。
Starshipをbashで動作させる例を次に示します。
```sh
# Get the status code from the last command executed
@@ -38,7 +38,7 @@ NUM_JOBS=$(jobs -p | wc -l)
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
```
Starshipに組み込まれた[Bashの実装](https://github.com/starship/starship/blob/master/src/init/starship.bash)は、[ Command Durationモジュール](https://starship.rs/config/#Command-Duration)などの高度な機能を可能にし、Starshipが事前にインストールされたBash構成と互換性があるようにするため、少し複雑です。
The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#command-duration) and to ensure that Starship is compatible with pre-installed Bash configurations.
`Starshipのプロンプト`で受け入れられるすべてのフラグのリストは、次のコマンドを取得できます。
@@ -50,43 +50,47 @@ starship prompt --help
## 古いバージョンの glibc を使用する Linux ディストリビューションで Starship を実行するにはどうすればよいですか?
"_version 'GLIBC_2のようなエラーが表示された場合。 8' が見つかりません (starshipで要求されます)_" プリビルドバイナリを使用しています(例えば、 CentOS 6 または 7 では`glibc`わりに`musl`でコンパイルされたバイナリを使用できます。
CentOS6や7などで事前にビルドされたバイナリを使用していて、"_version 'GLIBC_2.18' not found (required by starship)_" のようなエラーが出た場合`glibc`わりに `musl`でコンパイルされたバイナリを使用できます。
```sh
curl -fsSL https://starship.rs/install.sh | bash -s --- -platform unknown-linux-musl
```
## プロンプトにグリフ記号が表示されないのはなぜですか?
## よくわからない記号を見つけました。これはどういった意味ですか
これの最も一般的な原因は、システムの設定ミスです。 いくつかのLinuxディストリビューション 特に、すぐに使用できるフォントサポートは付属していません。 次のことを確認する必要があります。
不明な記号に遭遇した場合、`starship explain` を使用することで、現在表示しているモジュールの説明を見ることができます。
- ロケールは、`de_DE.UTF-8`` ja_JP.UTF-8</ 0>などのUTF-8値に設定されています。 <code>LC_ALL`がUTF-8値でない場合、[変更する必要があります](https://www.tecmint.com/set-system-locales-in-linux/)。
- 絵文字フォントがインストールされています。 ほとんどのシステムにはデフォルトで絵文字フォントが付属していますが、 一部(特にArch Linux) はそうではありません。 通常、システムの パッケージマネージャーからインストールすることができます--[noto emoji](https://www.google.com/get/noto/help/emoji/)は人気な選択肢です。
- [Nerd Font](https://www.nerdfonts.com/)を使用しています。
## 私のプロンプトで記号のグリフがないのはなぜですか?
システムをテストするには、ターミナルで次のコマンドを実行します
よくある原因はシステム上での設定ミスです。 いくつかのLinuxディストリビューションの初期設定にフォントサポートがありません。 次のことを確認してください
- ロケールが、`de_DE.UTF-8`` ja_JP.UTF-8`などのUTF-8に設定されている。 `LC_ALL`がUTF-8でない場合、[変更する必要があります](https://www.tecmint.com/set-system-locales-in-linux/)。
- 絵文字フォントがインストールされている。 ほとんどのシステムにはデフォルトで絵文字フォントが付属していますが、 一部 (特にArch Linux) はそうではありません。 通常、システムの パッケージマネージャーからインストールすることができます。--[noto emoji](https://www.google.com/get/noto/help/emoji/)は一般的な選択肢です。
- [Nerd Font](https://www.nerdfonts.com/)を使用している。
ターミナルで以下のコマンドを実行することでテストできます。
```sh
echo -e "\xf0\x9f\x90\x8d"
echo -e "\xee\x82\xa0"
```
1行目は[snake emoji](https://emojipedia.org/snake/)を生成し、2行目は[powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs)を生成するはずです。
行目は[蛇の絵文字](https://emojipedia.org/snake/)、二行目は[powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs)が表示されるはずです。
いずれかのシンボルが正しく表示されない場合でも、システムの設定が間違っています。 残念ながら、フォント設定を正しくするのは難しい場合があります。 Discordのユーザーがお役に立てるかもしれません。 両方の記号が正しく表示されているにもかかわらず、まだStarship表示されていない場合は、[バグ報告をしてください!](https://github.com/starship/starship/issues/new/choose)
もし、どちらの記号とも正しく表示されない場合、システムの設定が間違っています。 不幸にも、正しくフォント設定するのは難しいものです。 Discordのユーザーが助けてくれるかもしれません もし記号が正しく表示されているにもかかわらず、Starshipが正しく表示されていない場合は、[バグ報告](https://github.com/starship/starship/issues/new/choose)をお願いします。
## Starshipをアンインストールするにはどうすればいいですか?
## Starshipをアンインストールしたい
Starshipは、最初の場所にインストールするのと同じらい簡単にアンインストールできます。
Starshipのアンインストールはインストールと同じらい簡単す。
1. Starshipを初期化するために使用されるシェル設定行を削除します(例:`~/.bashrc`)。
1. Starshipを初期化するために使用した、シェル設定行を削除します (例:`~/.bashrc`)。
1. Starshipのバイナリを削除します。
Starship がパッケージマネージャを使用してインストールされている場合は、アンインストール手順については、そのドキュメントを参照してください。
パッケージマネージャを使用してStarshipをインストールした場合は、パッケージマネージャーのアンインストールガイドを参照してください。
Starship が `curl | bash` スクリプトを使用してインストールされた場合、次のコマンドバイナリを削除します:
`curl | bash` スクリプトを使用してStarshipをインストールた場合は、以下のコマンドバイナリを削除してください。
```sh
# starshipバイナリを見つけて削除します
# starshipバイナリを見つけて削除
rm "$(which starship)"
```
+46 -20
View File
@@ -2,18 +2,21 @@
<img
width="400"
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
alt="Starship Cross-shell prompt" />
alt="Starship Cross-shell prompt"
/>
</p>
<p align="center">
<a href="https://github.com/starship/starship/actions"
><img
src="https://img.shields.io/github/workflow/status/starship/starship/Main workflow/master?label=workflow&style=flat-square"
alt="GitHub Actions workflow status" /></a>
alt="GitHub Actions workflow status"
/></a>
<a href="https://crates.io/crates/starship"
><img
src="https://img.shields.io/crates/v/starship?style=flat-square"
alt="Crates.io version" /></a>
alt="Crates.io version"
/></a>
<a href="https://repology.org/project/starship/versions"
><img
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories&style=flat-square"
@@ -22,11 +25,13 @@
<a href="https://discord.gg/starship"
><img
src="https://img.shields.io/discord/567163873606500352?label=discord&logoColor=white&style=flat-square"
alt="Chat on Discord" /></a>
alt="Chat on Discord"
/></a>
<a href="https://twitter.com/StarshipPrompt"
><img
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Follow @StarshipPrompt on Twitter" /></a>
alt="Follow @StarshipPrompt on Twitter"
/></a>
</p>
<p align="center">
@@ -42,63 +47,72 @@
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English" /></a>
alt="English"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/ja-JP/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png"
alt="日本語" /></a>
alt="日本語"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/zh-TW/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-tw.png"
alt="繁體中文" /></a>
alt="繁體中文"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/ru-RU/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ru.png"
alt="Русский" /></a>
alt="Русский"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/de-DE/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png"
alt="Deutsch" /></a>
alt="Deutsch"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png"
alt="简体中文" /></a>
alt="简体中文"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/es-ES/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-es.png"
alt="Español" /></a>
alt="Español"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/fr-FR/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français" /></a>
alt="Français"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/vi-VN/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-vn.png"
alt="Tiếng Việt" /></a>
alt="Tiếng Việt"
/></a>
</p>
<h1></h1>
@@ -107,7 +121,8 @@
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
alt="Starship with iTerm2 and the Snazzy theme"
width="50%"
align="right" />
align="right"
/>
**シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!**
@@ -132,7 +147,7 @@
### 入門
**Note**: due to the proliferation of different platforms, only a subset of supported platforms are shown below. Can't see yours? Have a look at the [extra platform instructions](https://starship.rs/installing/).
**注意**: さまざまなプラットフォームが急増しているため、ここでは対応プラットフォームの一部だけを挙げています。 自分が使っているシェルがありませんか? [extra platform instructions](https://starship.rs/installing/) を確認してください。
1. **Starship** のバイナリをインストール
@@ -150,7 +165,7 @@
#### パッケージマネージャー経由でインストール
##### Example: [Homebrew](https://brew.sh/):
##### : [Homebrew の場合](https://brew.sh/):
```sh
brew install starship
@@ -201,7 +216,7 @@
#### PowerShell
Add the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the `$PROFILE` variable in PowerShell. Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
`Microsoft.PowerShell_profile.ps1` の最後に以下を追記してください。 PowerShell 上で `$PROFILE` 変数を問い合わせると、ファイルの場所を確認できます。 通常、パスは `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` または -Nix 上では `~/.config/powershell/Microsoft.PowerShell_profile.ps1` です。
```powershell
Invoke-Expression (&starship init powershell)
@@ -221,7 +236,7 @@
#### Elvish
**Warning** Only elvish v0.15 or higher is supported. Add the following to the end of `~/.elvish/rc.elv`:
**警告** elvish v0.15 以上のみがサポートされています。 `~/.elvish/rc.elv` の最後に以下を追記してください。
```sh
# ~/.elvish/rc.elv
@@ -229,11 +244,22 @@
eval (starship init elvish)
```
#### Tcsh
`~/.tcshrc` の最後に以下を追加します:
```sh
# ~/.tcshrc
eval `starship init tcsh`
```
## 🤝 貢献
私たちは常に**すべてのスキルレベル**の貢献者を探しています! もし簡単にプロジェクトへ参加する方法をお探しなら、 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue) に取り組んでみてください。
If you are fluent in a non-English language, we greatly appreciate any help keeping our docs translated and up-to-date in other languages. If you would like to help, translations can be contributed on the [Starship Crowdin](https://translate.starship.rs/).
あなたが英語以外の言語に堪能な場合、ドキュメントの翻訳と更新に協力していただけると嬉しいです。 協力してくれる場合、翻訳は [Starship Crowdin](https://translate.starship.rs/) から貢献できます。
もしあなたが Starship への貢献に興味がある場合は、我々の[貢献ガイド](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)をご覧ください。 また、気軽に我々の[Discord サーバー](https://discord.gg/8Jzqu3T)へ顔を出してください。 👋
+41 -13
View File
@@ -8,13 +8,29 @@ To install starship, you need to do two things:
For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed.
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!
## [termux](https://termux.com)
## [Chocolatey](https://chocolatey.org)
### 必要なもの
Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
### Installation
```powershell
choco install starship
```
## [termux](https://termux.com)
### 必要なもの
```sh
pkg install getconf
```
### Installation
```sh
curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin
```
@@ -31,7 +47,29 @@ nix-env -iA nixos.starship
#### Declarative, single user, via [home-manager](home-manager)
Add `pkgs.starship` to your `home.packages` in your `home.nix` file, then run
Enable the `programs.starship` module in your `home.nix` file, and add your settings
```nix
{
programs.starship = {
enable = true;
enableZshIntegration = true;
# Configuration written to ~/.config/starship.toml
settings = {
# add_newline = false;
# character = {
# success_symbol = "[](bold green)";
# error_symbol = "[](bold red)";
# };
# package.disabled = true;
};
};
}
```
then run
```sh
home-manager switch
@@ -39,18 +77,8 @@ home-manager switch
#### Declarative, system-wide, with NixOS
Add `pkgs.starship` to `environment.packages` in your `configuration.nix`, then run
Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
```sh
sudo nixos-rebuild switch
```
### Modifying Init Scripts
#### With Nix and home-manager, using zsh:
Add the following to `programs.zsh.initExtra` in your `home.nix` file, then run
```sh
home-manager switch
```
+4 -1
View File
@@ -16,7 +16,7 @@
```toml
[aws]
symbol = " "
symbol = " "
[conda]
symbol = " "
@@ -84,6 +84,9 @@ symbol = " "
[rust]
symbol = " "
[scala]
symbol = " "
[swift]
symbol = "ﯣ "
```