--- home: true heroImage: /logo.svg heroText: tagline: シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです! actionText: Get Started → actionLink: ./guide/ features: - title: 互換性優先 details: 一般的なほとんどのOSの一般的なほとんどのシェル上で動作します。 あらゆるところで使用してください! - title: Rust 製 details: Rust の最高レベルの速度と安全性を用いることで、可能な限り高速かつ信頼性を高くしています。 - title: カスタマイズ可能 details: それぞれの細かい点は好みにカスタマイズが出来るため、ミニマルにも多機能にも好きなようにプロンプトを設定することができます。 footer: ISC Licensed | Copyright © 2019-present Starship Contributors #Used for the description meta tag, for SEO metaTitle: "Starship: Cross-Shell Prompt" description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, and PowerShell. ---
### 必要なもの - [Nerd Font](https://www.nerdfonts.com/)の一つがインストールされていて、ターミナルで有効になっていること。 ### クイックインストール 1. **Starship** のバイナリをインストール #### 最新版のインストール Shellを利用する ```sh sh -c "$(curl -fsSL https://starship.rs/install.sh)" ``` Starship自体を更新するには、上記のスクリプトを再度実行してください。 最新のバージョンに置き換わり、設定ファイルには変更を加えません。 #### パッケージマネージャー経由でインストール [ Homebrew ](https://brew.sh/)の場合: ```sh brew install starship ``` [ Scoop ](https://scoop.sh)の場合: ```powershell scoop install starship ``` 1. 初期化のためのスクリプトをシェルの設定ファイルに追加 #### Bash `~/.bashrc` の最後に以下を追記してください ```sh # ~/.bashrc eval "$(starship init bash)" ``` #### Fish `~/.config/fish/config.fish` の最後に以下を追記してください ```sh # ~/.config/fish/config.fish starship init fish | source ``` #### Zsh `~/.zshrc` の最後に以下を追記してください ```sh # ~/.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` です。 ```sh Invoke-Expression (&starship init powershell) ``` #### Ion `~/.config/ion/initrc `の最後に次を追加してください ```sh # ~/.config/ion/initrc eval $(starship init ion) ``` #### Elvish ::: warning elvish v0.15以上のみサポートされています。 ::: `~/.elvish/rc.elv` の最後に以下を追記してください。 ```sh # ~/.elvish/rc.elv eval (starship init elvish) ``` #### Tcsh `~/.tcshrc` の最後に以下を追加します: ```sh # ~/.tcshrc eval `starship init tcsh` ``` #### Nushell ::: warning This will change in the future. nu バージョン 0.33 以降のみサポートされます。 ::: Add the following to your nu config file. nu で`config path`を実行することで、設定ファイルの場所を確認できます。 ```toml startup = [ "mkdir ~/.cache/starship", "starship init nu | save ~/.cache/starship/init.nu", "source ~/.cache/starship/init.nu" ] prompt = "starship_prompt" ``` #### Xonsh `~/.xonshrc` の最後に以下を追加してください: ```sh # ~/.xonshrc execx($(starship init xonsh)) ```