C.W.K.
Stream
Lesson 06 of 08 · published

Starship — 크로스셸 prompt

~8 min · starship, prompt

Level 0창 구경꾼
0 XP0/95 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

모든 shell 에 한 prompt

config.lesson6 에서 이미 다뤘지만 modern-tools 라인업에 자기 자리 있음. Starship 은 Rust binary — zsh / bash / fish / nu / PowerShell 모두에 빠르고 설정 가능한 prompt. 어떤 shell 에서도 같은 prompt.

왜 shell 함수 대신 Rust binary 인가

전통 prompt 는 매 키 입력 / 매 줄마다 shell 코드 실행. git status / venv / k8s context / async branch 모이면 느려. Starship 은 prompt 당 한 번, 컴파일된 Rust 로, 내부 동시성. prompt 가 즉시 — 사실 열두 가지 정보 모으는 중에도.

config 블록 핵심

~/.config/starship.toml:

add_newline = true
format = """
$directory$git_branch$git_status$python$nodejs$kubernetes
$character"""

[character]
success_symbol = "[➜](green)"
error_symbol = "[✗](red)"

[git_status]
modified = "!"
untracked = "?"

format 문자열이 마스터 스위치 — 모듈 순서 자유, 줄바꿈 / 장식 포함.

Preset

starship preset gruvbox-rainbow -o ~/.config/starship.toml
starship preset nerd-font-symbols -o ~/.config/starship.toml
starship preset pure-preset -o ~/.config/starship.toml

한 줄 복사 명령. preset 갤러리 에서 스크린샷 미리 확인.

P10k 와 trade-off

Starship 은 모든 shell. P10k 는 zsh 전용 + 약간 더 빠름 + 첫 셋업 마법사 예쁨. zsh 살고 가장 빛나는 단일-shell 경험 원하면 P10k, 그 외 Starship.

Code

최소 starship 설정·toml
# ~/.config/starship.toml
add_newline = true

[character]
success_symbol = "[➜](green)"
error_symbol = "[✗](red)"

[git_status]
ahead = "⇡"
behind = "⇣"
diverged = "⇕"

External links

Exercise

config.lesson6 건너뛰었으면 Starship 셋업. 취향 preset 선택: starship preset nerd-font-symbols -o ~/.config/starship.toml. git repo 로 cd 해서 감상.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.