Files
starship/docs/ja-JP/README.md
T

194 lines
5.2 KiB
Markdown
Raw Normal View History

---
2024-03-03 17:55:30 +01:00
layout: home
hero:
image: /logo.svg
2024-03-21 20:42:05 +09:00
text:
2024-03-03 17:55:30 +01:00
tagline: シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!
actions:
2024-03-21 20:42:05 +09:00
-
theme: brand
2024-03-03 17:55:30 +01:00
text: Get Started →
link: ./guide/
2020-02-04 12:11:36 -05:00
features:
2024-03-21 20:42:05 +09:00
-
2020-02-04 12:11:36 -05:00
title: 互換性優先
details: 一般的なほとんどのOSの一般的なほとんどのシェル上で動作します。 あらゆるところで使用してください!
2024-03-21 20:42:05 +09:00
-
2022-12-05 15:54:12 +09:00
title: Rust製
details: Rustの最高レベルの速度と安全性を用いることで、可能な限り高速かつ信頼性を高くしています。
2024-03-21 20:42:05 +09:00
-
2020-02-04 12:11:36 -05:00
title: カスタマイズ可能
details: それぞれの細かい点は好みにカスタマイズが出来るため、ミニマルにも多機能にも好きなようにプロンプトを設定することができます。
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-04-18 09:48:28 -05:00
description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, PowerShellで簡単に利用できます。
---
2024-05-16 02:07:00 +09:00
<script setup>
import { onMounted } from 'vue'
onMounted(() => {
const urlParams = new URLSearchParams(window.location.search)
if (urlParams.has('uwu') || urlParams.has('kawaii')) {
const img = document.querySelector('.VPHero .VPImage.image-src')
img.classList.add('uwu')
img.src = '/logo-uwu.png'
img.alt = 'Kawaii Starship Logo by @sawaratsuki1004'
}
})
</script>
2024-03-21 20:42:05 +09:00
<video class="demo-video" muted autoplay loop playsinline>
<source src="/demo.webm" type="video/webm">
<source src="/demo.mp4" type="video/mp4">
</video>
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
### クイックインストール
1. **Starship** のバイナリをインストール
2020-01-15 12:23:25 -05:00
#### 最新版のインストール
2020-01-15 12:23:25 -05:00
Shellを利用する
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
```
2022-03-08 21:11:36 -05:00
2021-07-10 17:15:23 -04:00
Starship自体を更新するには、上記のスクリプトを再度実行してください。 最新のバージョンに置き換わり、設定ファイルには変更を加えません。
2020-01-15 12:23:25 -05:00
#### パッケージマネージャー経由でインストール
2023-12-29 03:07:36 +09:00
[ Homebrew](https://brew.sh/)を使用する
```sh
2019-12-24 16:54:29 -05:00
brew install starship
```
2024-03-21 20:42:05 +09:00
2023-12-29 03:07:36 +09:00
[Winget](https://github.com/microsoft/winget-cli)を使用する
2019-12-24 16:54:29 -05:00
```powershell
2022-10-14 21:53:32 -04:00
winget 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)"
```
2026-04-18 20:11:45 +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` です。
```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
2025-10-25 20:33:44 +09:00
> [!WARNING] Only elvish v0.18 or higher is supported.
2022-05-24 17:19:44 -04:00
2025-10-25 20:33:44 +09:00
Add the following to the end of `~/.config/elvish/rc.elv` (`%AppData%\elvish\rc.elv` on Windows):
2021-02-06 12:46:15 -05:00
```sh
# ~/.elvish/rc.elv
eval (starship init elvish)
```
2025-10-25 20:33:44 +09:00
For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
2021-02-06 12:46:15 -05:00
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
2025-10-25 20:33:44 +09:00
> [!WARNING] This will change in the future. Nushell v0.96+ のみサポートされています。
2022-05-24 17:19:44 -04:00
2025-01-12 00:23:14 +09:00
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
2024-03-21 20:42:05 +09:00
2022-03-24 15:47:11 -05:00
```sh
2025-01-12 00:23:14 +09:00
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
2022-03-24 15:47:11 -05:00
```
2021-08-14 09:24:51 -04:00
2023-07-30 09:29:01 -04:00
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
2022-04-18 09:48:28 -05:00
[Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) コマンドを使用する必要があります。 以下をファイル `starship.lua` に追加し、Clinkスクリプトディレクトリに配置します:
2022-01-15 17:08:31 -05:00
```lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
```