* chore(docs): fix markdown syntax of translated files * best-effort fix russian text
layout, hero, features, footer, metaTitle, description
| layout | hero | features | footer | metaTitle | description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| home |
|
|
ISC Licensed | Copyright © 2019-present Starship Contributors | Starship: Cross-Shell Prompt | Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, PowerShellで簡単に利用できます。 |
必要なもの
- Nerd Fontの一つがインストールされていて、ターミナルで有効になっていること。
クイックインストール
-
Starship のバイナリをインストール
最新版のインストール
Shellを利用する
curl -sS https://starship.rs/install.sh | shStarship自体を更新するには、上記のスクリプトを再度実行してください。 最新のバージョンに置き換わり、設定ファイルには変更を加えません。
パッケージマネージャー経由でインストール
Homebrewを使用する
brew install starshipWingetを使用する
winget install starship -
初期化のためのスクリプトをシェルの設定ファイルに追加
Bash
~/.bashrcの最後に以下を追記してください# ~/.bashrc eval "$(starship init bash)"Fish
~/.config/fish/config.fishの最後に以下を追記してください# ~/.config/fish/config.fish starship init fish | sourceZsh
~/.zshrcの最後に以下を追記してください# ~/.zshrc eval "$(starship init zsh)"PowerShell
Microsoft.PowerShell_profile.ps1の最後に以下を追記してください。 PowerShell 上で$PROFILE変数を問い合わせると、ファイルの場所を確認できます。 通常、パスは~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1または -Nix 上では~/.config/powershell/Microsoft.PowerShell_profile.ps1です。Invoke-Expression (&starship init powershell)Ion
~/.config/ion/initrcの最後に次を追加してください# ~/.config/ion/initrc eval $(starship init ion)Elvish
[!WARNING] Only elvish v0.18 or higher is supported.
Add the following to the end of
~/.config/elvish/rc.elv(%AppData%\elvish\rc.elvon Windows):# ~/.elvish/rc.elv eval (starship init elvish)For elvish versions prior to v0.21.0 the config file might instead be
~/.elvish/rc.elvTcsh
~/.tcshrcの最後に以下を追加します:# ~/.tcshrc eval `starship init tcsh`Nushell
[!WARNING] This will change in the future. Nushell v0.96+ のみサポートされています。
Add the following to the end of your Nushell configuration (find it by running
$nu.config-pathin Nushell):mkdir ($nu.data-dir | path join "vendor/autoload") starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")Xonsh
~/.xonshrcの最後に以下を追加してください:# ~/.xonshrc execx($(starship init xonsh))Cmd
Clink (v1.2.30+) コマンドを使用する必要があります。 以下をファイル
starship.luaに追加し、Clinkスクリプトディレクトリに配置します:-- starship.lua load(io.popen('starship init cmd'):read("*a"))()