2019-12-06 22:07:57 +00:00
# FAQ
2019-12-14 23:46:45 +00:00
## デモGIFで使用される構成は何ですか?
2019-12-06 22:07:57 +00:00
2019-12-14 23:46:45 +00:00
- **ターミナルエミュレータ**:[ iTerm2 ](https://iterm2.com/)
- **テーマ**: Minimal
- **カラースキーム**: [Snazzy ](https://github.com/sindresorhus/iterm2-snazzy )
2020-09-30 20:26:13 +00:00
- **フォント**: [FiraCode Nerd Font ](https://www.nerdfonts.com/font-downloads )
2019-12-14 23:46:45 +00:00
- **シェル**: [Fish Shell ](https://fishshell.com/ )
2020-07-23 21:07:10 +00:00
- **設定**: [matchaiのDotfiles ](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish )
2019-12-14 23:46:45 +00:00
- **プロンプト**: [Starship ](https://starship.rs/ )
2019-12-06 22:07:57 +00:00
2020-10-13 19:09:01 +00:00
## How do I get command completion as shown in the demo GIF?
Completion support 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 ).
2020-09-30 20:26:13 +00:00
## Do top level `format` and `<module>.disabled` do the same thing?
2019-12-06 22:07:57 +00:00
2019-12-14 23:46:45 +00:00
はい、両方ともプロンプトでモジュールを無効にするために使用できます。 モジュールを無効にするだけの場合は、これらの理由から` < module > .disabled `を無効にする方法をお勧めします。
2019-12-06 22:07:57 +00:00
2020-09-30 20:26:13 +00:00
- Disabling modules is more explicit than omitting them from the top level `format`
2019-12-14 23:46:45 +00:00
- Starshipが更新されると、新しく作成されたモジュールがプロンプトに追加されます
2019-12-06 22:07:57 +00:00
2019-12-14 23:46:45 +00:00
## ドキュメントによると、Starshipはクロスシェル対応をしているようですが、Xシェルはサポートしていません。 なぜですか?
2019-12-06 22:07:57 +00:00
2019-12-14 23:46:45 +00:00
Starshipの構築方法は、事実上すべてのシェルのサポートを追加できるはずです。 Starshipのバイナリはステートレスであり、シェルに依存しないため、シェルがプロンプトのカスタマイズとシェルの拡張をサポートしている限り、Starshipを使用できます。
2019-12-06 22:07:57 +00:00
2019-12-14 23:46:45 +00:00
Starshipをbashで動作させる小さな例を次に示します。
2019-12-06 22:07:57 +00:00
```sh
# Get the status code from the last command executed
STATUS=$?
docs(i18n): new Crowdin translations (#1262)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2020-06-11 01:28:04 +00:00
# 実行中のジョブの数を取得します。
2019-12-06 22:07:57 +00:00
NUM_JOBS=$(jobs -p | wc -l)
docs(i18n): new Crowdin translations (#1262)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2020-06-11 01:28:04 +00:00
# プロンプトを `starship prompt`に設定
2020-05-23 23:10:58 +00:00
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
2019-12-06 22:07:57 +00:00
```
2019-12-14 23:46:45 +00:00
Starshipに組み込まれた[Bashの実装](https://github.com/starship/starship/blob/master/src/init/starship.bash)は、[ Command Durationモジュール](https://starship.rs/config/#Command-Duration)などの高度な機能を可能にし、Starshipが事前にインストールされたBash構成と互換性があるようにするため、少し複雑です。
2019-12-06 22:07:57 +00:00
2019-12-14 23:46:45 +00:00
`Starshipのプロンプト` で受け入れられるすべてのフラグのリストは、次のコマンドを取得できます。
2019-12-06 22:07:57 +00:00
```sh
2019-12-13 20:26:23 +00:00
starship prompt --help
2019-12-06 22:07:57 +00:00
```
2019-12-14 23:46:45 +00:00
プロンプトは提供されているコンテキストを使用しますが、フラグは「必須」ではありません。
2020-05-05 17:07:34 +00:00
docs(i18n): new Crowdin translations (#1262)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2020-06-11 01:28:04 +00:00
## 古いバージョンの glibc を使用する Linux ディストリビューションで Starship を実行するにはどうすればよいですか?
2020-05-05 17:07:34 +00:00
2020-09-30 20:26:13 +00:00
"_version 'GLIBC_2のようなエラーが表示された場合。 8' が見つかりません (starshipで要求されます)_" プリビルドバイナリを使用しています(例えば、 CentOS 6 または 7 では、`glibc`の代わりに`musl`でコンパイルされたバイナリを使用できます。
2020-05-05 17:07:34 +00:00
```sh
docs(i18n): new Crowdin translations (#1262)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2020-06-11 01:28:04 +00:00
curl -fsSL https://starship.rs/install.sh | bash -s --- -platform unknown-linux-musl
2020-05-05 17:07:34 +00:00
```
2020-06-19 21:05:45 +00:00
2020-09-30 20:26:13 +00:00
## プロンプトにグリフ記号が表示されないのはなぜですか?
2020-06-19 21:05:45 +00:00
2020-09-30 20:26:13 +00:00
これの最も一般的な原因は、システムの設定ミスです。 いくつかのLinuxディストリビューション 特に、すぐに使用できるフォントサポートは付属していません。 次のことを確認する必要があります。
2020-06-19 21:05:45 +00:00
2020-09-30 20:26:13 +00:00
- ロケールは、`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/ )を使用しています。
2020-06-19 21:05:45 +00:00
2020-09-30 20:26:13 +00:00
システムをテストするには、ターミナルで次のコマンドを実行します。
2020-06-19 21:05:45 +00:00
2020-07-23 21:07:10 +00:00
```sh
2020-06-19 21:05:45 +00:00
echo -e "\xf0\x9f\x90\x8d"
echo -e "\xee\x82\xa0"
```
2020-09-30 20:26:13 +00:00
1行目は[snake emoji](https://emojipedia.org/snake/)を生成し、2行目は[powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs)を生成するはずです。
2020-06-19 21:05:45 +00:00
2020-09-30 20:26:13 +00:00
いずれかのシンボルが正しく表示されない場合でも、システムの設定が間違っています。 残念ながら、フォント設定を正しくするのは難しい場合があります。 Discordのユーザーがお役に立てるかもしれません。 両方の記号が正しく表示されているにもかかわらず、まだStarshipに表示されていない場合は、[バグ報告をしてください!](https://github.com/starship/starship/issues/new/choose)
2020-07-23 21:07:10 +00:00
2020-09-30 20:26:13 +00:00
## Starshipをアンインストールするにはどうすればいいですか?
2020-07-23 21:07:10 +00:00
2020-09-30 20:26:13 +00:00
Starshipは、最初の場所にインストールするのと同じくらい簡単にアンインストールできます。
2020-07-23 21:07:10 +00:00
2020-09-30 20:26:13 +00:00
1. Starshipを初期化するために使用されるシェル設定の行を削除します(例:`~/.bashrc`)。
1. Starshipのバイナリを削除します。
2020-07-23 21:07:10 +00:00
2020-09-30 20:26:13 +00:00
Starship がパッケージマネージャを使用してインストールされている場合は、アンインストール手順については、そのドキュメントを参照してください。
2020-07-23 21:07:10 +00:00
2020-09-30 20:26:13 +00:00
Starship が `curl | bash` スクリプトを使用してインストールされた場合、次のコマンドはバイナリを削除します:
2020-07-23 21:07:10 +00:00
```sh
2020-09-30 20:26:13 +00:00
# starshipバイナリを見つけて削除します
2020-07-23 21:07:10 +00:00
rm "$(which starship)"
```