Files
starship/docs/ko-KR/README.md
T

194 lines
4.9 KiB
Markdown
Raw Normal View History

2021-01-03 03:56:07 -05:00
---
2024-03-03 17:55:30 +01:00
layout: home
hero:
image: /logo.svg
2024-03-21 20:42:05 +09:00
text:
tagline: 아무 셸에나 적용할 수 있는 간결하고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다!
2024-03-03 17:55:30 +01:00
actions:
2024-03-21 20:42:05 +09:00
-
theme: brand
2024-03-03 17:55:30 +01:00
text: 시작하기 →
link: ./guide/
2021-01-03 03:56:07 -05:00
features:
2024-03-21 20:42:05 +09:00
-
2023-12-29 03:07:36 +09:00
title: 호환성 우선
details: 거의 모든 운영 체제의 거의 모든 셸에서 동작합니다. 모든 곳에서 사용해 보세요!
2024-03-21 20:42:05 +09:00
-
2023-12-29 03:07:36 +09:00
title: Rust 기반
details: Rust의 최고 수준의 속도와 안정성으로 프롬프트를 가능한 한 빠르고 안정적으로 만들어 보세요.
2024-03-21 20:42:05 +09:00
-
2023-12-29 03:07:36 +09:00
title: 커스텀 가능
details: 모든 사소한 디테일들을 마음대로 커스텀할 수 있어, 프롬프트를 원하는 만큼 간단하게 만들거나 기능이 풍부하게 만들 수 있습니다.
2021-01-03 03:56:07 -05:00
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
2023-12-29 03:07:36 +09:00
metaTitle: "Starship: 크로스-셸 프롬프트"
description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다! 필요한 정보를 깔끔하고 간략하게 표시합니다. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, 및 PowerShell에 빠르게 설치할 수 있습니다.
2021-01-03 03:56:07 -05:00
---
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-01-03 03:56:07 -05:00
2022-02-07 15:53:55 +01:00
### 준비 사항
2021-04-22 17:12:09 -04:00
2022-02-07 15:53:55 +01:00
- 터미널에 [Nerd Font](https://www.nerdfonts.com/)가 설치되어 있고 사용 가능해야 합니다.
2021-04-22 17:12:09 -04:00
2021-05-01 14:20:08 -04:00
### 빠른 설치
2021-01-03 03:56:07 -05:00
2022-02-07 15:53:55 +01:00
1. **starship** 바이너리 설치:
2021-01-03 03:56:07 -05:00
2021-01-26 17:07:13 -05:00
#### 최근 버전 설치
2021-01-03 03:56:07 -05:00
2023-12-29 03:07:36 +09:00
셸로 설치:
2021-01-03 03:56:07 -05:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2021-01-03 03:56:07 -05:00
```
2022-03-08 21:11:36 -05:00
2022-02-07 15:53:55 +01:00
Starship을 업데이트하고 싶은 경우에도 위의 스크립트를 실행시키면 됩니다. Starship의 설정은 변경되지 않고 버전만 최근 버전으로 대체될 것입니다.
2021-01-03 03:56:07 -05:00
2023-12-29 03:07:36 +09:00
#### 패키지 매니저로 설치하기
2021-01-03 03:56:07 -05:00
2023-12-29 03:07:36 +09:00
[Homebrew](https://brew.sh/)로 설치:
2021-01-03 03:56:07 -05:00
```sh
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)으로 설치:
2021-01-03 03:56:07 -05:00
```powershell
2022-10-14 21:53:32 -04:00
winget install starship
2021-01-03 03:56:07 -05:00
```
2022-02-07 15:53:55 +01:00
1. 쉘 설정 파일에 init 스크립트 추가:
2021-01-03 03:56:07 -05:00
#### Bash
2022-02-07 15:53:55 +01:00
`~/.bashrc`의 끝부분에 아래 라인을 추가:
2021-01-03 03:56:07 -05:00
```sh
# ~/.bashrc
eval "$(starship init bash)"
```
#### Fish
2022-02-07 15:53:55 +01:00
`~/.config/fish/config.fish`의 끝부분에 아래 라인을 추가:
2021-01-03 03:56:07 -05:00
```sh
# ~/.config/fish/config.fish
starship init fish | source
```
#### Zsh
2022-02-07 15:53:55 +01:00
`~/.zshrc`의 끝부분에 아래 라인을 추가
2021-01-03 03:56:07 -05:00
```sh
# ~/.zshrc
eval "$(starship init zsh)"
```
#### Powershell
2022-02-07 15:53:55 +01:00
`Microsoft.PowerShell_profile.ps1`의 끝부분에 아래 내용을 추가합니다. 해당 설정파일은 파워쉘에서 `$PROFILE` 변수 확인을 통해 확인 가능합니다. 일반적으로 해당 파일은 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 혹은 -Nix의 경우 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`에 있습니다.
2021-01-03 03:56:07 -05:00
```sh
Invoke-Expression (&starship init powershell)
```
#### Ion
2022-02-07 15:53:55 +01:00
`~/.config/ion/initrc` 의 끝부분에 아래 라인을 추가:
2021-01-03 03:56:07 -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
2022-02-07 15:53:55 +01:00
`~/.tcshrc` 의 끝부분에 아래 라인을 추가:
2021-03-15 13:18:42 -04:00
```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
2022-02-07 15:53:55 +01: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
Cmd를 이용하려면 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 를 사용해야 합니다. `starship.lua` 파일에 아래의 라인을 추가하고 파일을 Clink scripts 폴더에 저장합니다.
2022-01-15 17:08:31 -05:00
```lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
```