Starship – Cross-shell prompt

GitHub Actions workflow status Crates.io version Packaging status
Chat on Discord Follow @StarshipPrompt on Twitter

ウェブサイト · インストール · 設定

English   Deutsch   Español   Français   Bahasa Indonesia   Italiano   日本語   Português do Brasil   Русский   Tiếng Việt   简体中文   繁體中文

SWUbanner (opens new window)

Starship with iTerm2 and the Snazzy theme

シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!

  • 高速: 本当に 高速です! 🚀
  • カスタマイズ可能: プロンプトのあらゆる側面を構成します。
  • ユニバーサル: あらゆるシェル、あらゆるオペレーティングシステムで動作します。
  • インテリジェント: 関連情報を一目で示します。
  • 豊富な機能: お気に入りのツールをすべてサポートします。
  • 簡単: 迅速なインストールが可能であり、数分で使用開始可能です。

Starshipのドキュメントを見る  ▶

# 🚀 インストール

# 必要なもの

# Step 1. Starshipをインストール

以下のリストからお使いのOSを選択し、インストール方法をご確認ください。

Android

以下のいずれかのパッケージマネージャーを使用して、Starshipをインストールします。

リポジトリ 手順
Termux (opens new window) pkg install starship
BSD

以下のいずれかのパッケージマネージャーを使用して、Starshipをインストールします。

ディストリビューション リポジトリ 手順
Any crates.io (opens new window) cargo install starship --locked
FreeBSD FreshPorts (opens new window) pkg install starship
NetBSD pkgsrc (opens new window) pkgin install starship
Linux

お使いのシステムに合わせた最新版をインストールしてください。

curl -sS https://starship.rs/install.sh | sh

または、以下のパッケージマネージャを使用して、Starshipをインストールします。

ディストリビューション リポジトリ 手順
Any crates.io (opens new window) cargo install starship --locked
Any conda-forge (opens new window) conda install -c conda-forge starship
Any Linuxbrew (opens new window) brew install starship
Any Snapcraft (opens new window) snap install starship
Alpine Linux 3.13+ Alpine Linux Packages (opens new window) apk add starship
Arch Linux Arch Linux Community (opens new window) pacman -S starship
CentOS 7+ Copr (opens new window) dnf copr enable atim/starship
dnf install starship
Gentoo Gentoo Packages (opens new window) emerge app-shells/starship
Manjaro pacman -S starship
NixOS nixpkgs (opens new window) nix-env -iA nixpkgs.starship
Void Linux Void Linux Packages (opens new window) xbps-install -S starship
macOS

お使いのシステムに合わせた最新版をインストールしてください。

curl -sS https://starship.rs/install.sh | sh

または、以下のパッケージマネージャを使用して、Starshipをインストールします。

リポジトリ 手順
crates.io (opens new window) cargo install starship --locked
conda-forge (opens new window) conda install -c conda-forge starship
Homebrew (opens new window) brew install starship
MacPorts (opens new window) port install starship
Windows

Releasesセクション (opens new window) のMSIインストーラーでシステムに合った最新バージョンをインストールしてください。

以下のいずれかのパッケージマネージャーを使用して、Starshipをインストールします。

リポジトリ 手順
crates.io (opens new window) cargo install starship --locked
Chocolatey (opens new window) choco install starship
conda-forge (opens new window) conda install -c conda-forge starship
Scoop (opens new window) scoop install starship
winget (opens new window) winget install --id Starship.Starship

# Step 2. Starshipをシェルにセットアップ

Starshipを初期化するためのシェルの設定。 以下のリストからお使いのシェルを選択してください。

Bash

~/.bashrc の最後に以下を追記してください

eval "$(starship init bash)"
Cmd

Clink (opens new window) (v1.2.30+) コマンドを使用する必要があります。 このパス%LocalAppData%\clink\starship.lua に以下の内容を含むファイルを作成する。

load(io.popen('starship init cmd'):read("*a"))()
Elvish

~/.elvish/rc.elv の最後に以下を追記してください。

eval (starship init elvish)

注意: Elvish v0.18以降でサポートされています

Fish

~/.config/fish/config.fish の最後に以下を追記してください

starship init fish | source
Ion

~/.config/ion/initrcの最後に次を追加してください

eval $(starship init ion)
Nushell

Nushellの環境ファイルの最後に以下を追記してください ( $nu.env-path を実行してください):

mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu

そして、Nushellの設定ファイルの最後に以下を追加してください( $nu.config-path を実行してください)。

source ~/.cache/starship/init.nu

注意: Elvish v0.73以降でサポートされています

PowerShell

PowerShellの設定ファイルの最後に以下を追記してください ($PROFILE を実行してください):

Invoke-Expression (&starship init powershell)
Tcsh

~/.tcshrc の最後に以下を追加します:

eval `starship init tcsh`
Xonsh

~/.xonshrc の最後に以下を追加してください:

execx($(starship init xonsh))
Zsh

~/.zshrc の最後に以下を追記してください

eval "$(starship init zsh)"

# Step 3. Starshipの設定

新しいシェルインスタンスを起動すると、美しくて新しいシェルプロンプトが表示されるはずです。 デフォルトで問題なければ、お楽しみください!

Starshipのさらなるカスタマイズを目指すなら以下を参考にしてみてください。

# 🤝 貢献

私たちは常にすべてのスキルレベルの貢献者を探しています! もし簡単にプロジェクトへ参加する方法をお探しなら、 good first issue (opens new window) に取り組んでみてください。

あなたが英語以外の言語に堪能な場合、ドキュメントの翻訳と更新に協力していただけると嬉しいです。 協力してくれる場合、翻訳は Starship Crowdin (opens new window) から貢献できます。

もしあなたが Starship への貢献に興味がある場合は、我々の貢献ガイド (opens new window)をご覧ください。 また、気軽に我々のDiscord サーバー (opens new window)へ顔を出してください。 👋

# 💭影響を受けたプロダクト

よければStarship の作成に影響を与えた、これまでのプロジェクトをチェックしてください 🙏

# ❤️ スポンサー

スポンサーになることで (opens new window)このプロジェクトをサポートできます。 名前やロゴがあなたのホームページへのリンクとともに表示されます。

スポンサーティア


Starship rocket icon

# 📝 ライセンス

Copyright © 2019-present, Starship Contributors (opens new window).
このプロジェクトは ISC (opens new window) でライセンスされています。