2019-09-11 11:57:24 -04:00
---
2019-09-28 20:31:56 +09:00
home: true
heroImage: /logo.svg
2020-02-04 12:11:36 -05:00
heroText:
2020-04-03 12:35:39 -04:00
tagline: シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!
2019-09-11 11:57:24 -04:00
actionText: Get Started →
2020-02-02 19:51:45 -05:00
actionLink: ./guide/
2020-02-04 12:11:36 -05:00
features:
-
title: 互換性優先
details: 一般的なほとんどのOSの一般的なほとんどのシェル上で動作します。 あらゆるところで使用してください!
-
title: Rust 製
details: Rust の最高レベルの速度と安全性を用いることで、可能な限り高速かつ信頼性を高くしています。
-
title: カスタマイズ可能
details: それぞれの細かい点は好みにカスタマイズが出来るため、ミニマルにも多機能にも好きなようにプロンプトを設定することができます。
2019-09-11 11:57:24 -04:00
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
2020-02-04 12:11:36 -05:00
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
2022-01-15 17:08:31 -05:00
description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
2019-09-11 11:57:24 -04:00
---
<div class="center">
2019-12-14 18:46:45 -05:00
<video class="demo-video" muted autoplay loop playsinline>
2019-09-11 11:57:24 -04:00
<source src="/demo.webm" type="video/webm">
<source src="/demo.mp4" type="video/mp4">
2019-09-28 20:31:56 +09:00
</video>
2019-09-11 11:57:24 -04:00
</div>
2021-04-22 17:12:09 -04:00
### 必要なもの
2021-07-10 17:15:23 -04:00
- [Nerd Font ](https://www.nerdfonts.com/ )の一つがインストールされていて、ターミナルで有効になっていること。
2021-04-22 17:12:09 -04:00
2021-05-01 14:20:08 -04:00
### クイックインストール
2019-09-11 11:57:24 -04:00
1. **Starship ** のバイナリをインストール
2020-01-15 12:23:25 -05:00
#### 最新版のインストール
2019-09-11 11:57:24 -04:00
2020-01-15 12:23:25 -05:00
Shellを利用する
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2019-09-28 20:31:56 +09:00
` ``
2022-03-08 21:11:36 -05:00
2021-07-10 17:15:23 -04:00
Starship自体を更新するには、上記のスクリプトを再度実行してください。 最新のバージョンに置き換わり、設定ファイルには変更を加えません。
2019-09-11 11:57:24 -04:00
2020-01-15 12:23:25 -05:00
#### パッケージマネージャー経由でインストール
2019-09-11 11:57:24 -04:00
2021-04-08 11:52:32 -04:00
[ Homebrew ](https://brew.sh/)の場合:
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
` ``sh
2019-12-24 16:54:29 -05:00
brew install starship
2019-09-28 20:31:56 +09:00
` ``
2019-09-11 11:57:24 -04:00
2020-02-04 12:11:36 -05:00
[ Scoop ](https://scoop.sh)の場合:
2019-09-11 11:57:24 -04:00
2019-12-24 16:54:29 -05:00
` ``powershell
scoop install starship
2019-09-28 20:31:56 +09:00
` ``
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
1. 初期化のためのスクリプトをシェルの設定ファイルに追加
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
#### Bash
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
` ~/.bashrc` の最後に以下を追記してください
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
` ``sh
# ~/.bashrc
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
eval "$(starship init bash)"
` ``
2019-09-11 11:57:24 -04:00
2019-09-28 20:31:56 +09:00
#### Fish
` ~/.config/fish/config.fish` の最後に以下を追記してください
` ``sh
# ~/.config/fish/config.fish
2019-10-29 12:48:45 +09:00
starship init fish | source
2019-09-28 20:31:56 +09:00
` ``
#### Zsh
` ~/.zshrc` の最後に以下を追記してください
` ``sh
# ~/.zshrc
eval "$(starship init zsh)"
` ``
2019-10-21 23:42:08 +09:00
#### Powershell
2021-04-08 11:52:32 -04:00
` Microsoft.PowerShell_profile.ps1` の最後に以下を追記してください。 PowerShell 上で ` $PROFILE` 変数を問い合わせると、ファイルの場所を確認できます。 通常、パスは ` ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` または -Nix 上では ` ~/.config/powershell/Microsoft.PowerShell_profile.ps1` です。
2019-10-21 23:42:08 +09:00
` ``sh
Invoke-Expression (&starship init powershell)
` ``
2019-12-24 16:54:29 -05:00
#### Ion
2020-01-15 12:23:25 -05:00
` ~/.config/ion/initrc `の最後に次を追加してください
2019-12-24 16:54:29 -05:00
` ``sh
# ~/.config/ion/initrc
eval $(starship init ion)
` ``
2021-02-06 12:46:15 -05:00
2021-08-14 09:24:51 -04:00
2021-02-06 12:46:15 -05:00
#### Elvish
2022-02-07 15:53:55 +01:00
::: warning elvish v0.17以上のみサポートされています。 :::
2021-02-06 12:46:15 -05:00
2021-03-15 13:18:42 -04:00
` ~/.elvish/rc.elv` の最後に以下を追記してください。
2021-02-06 12:46:15 -05:00
` ``sh
# ~/.elvish/rc.elv
eval (starship init elvish)
` ``
2021-03-15 13:18:42 -04:00
#### Tcsh
` ~/.tcshrc` の最後に以下を追加します:
` ``sh
# ~/.tcshrc
eval ` starship init tcsh`
` ``
2021-07-10 17:15:23 -04:00
2021-08-14 09:24:51 -04:00
#### Nushell
2021-07-10 17:15:23 -04:00
2022-03-24 15:47:11 -05:00
::: warning This will change in the future. Only Nushell v0.60+ is supported. ::: Run the following:
` ``sh
mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
2021-07-10 17:15:23 -04:00
` ``
2021-08-14 09:24:51 -04:00
2022-03-24 15:47:11 -05:00
And add the following to the end of your Nushell configuration (find it by running ` $nu.config-path`):
` ``sh
mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
source ~/.cache/starship/init.nu
` ``
2021-08-14 09:24:51 -04:00
#### Xonsh
2021-11-07 18:07:39 +00:00
` ~/.xonshrc` の最後に以下を追加してください:
2021-08-14 09:24:51 -04:00
` ``sh
# ~/.xonshrc
execx($(starship init xonsh))
` ``
2022-01-15 17:08:31 -05:00
#### Cmd
You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file ` starship.lua` and place this file in Clink scripts directory:
` ``lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
` ``