Skip to content

Instantly share code, notes, and snippets.

@partrita
Forked from ikrishagarwal/setup-zsh-in-codespaces.md
Last active January 13, 2026 06:45
Show Gist options
  • Select an option

  • Save partrita/0e3ce2d28cc7ef363936b5e391647321 to your computer and use it in GitHub Desktop.

Select an option

Save partrita/0e3ce2d28cc7ef363936b5e391647321 to your computer and use it in GitHub Desktop.
Setup starship, zsh suggestions and syntax highlight for your codespaces.

ZSH 설정하기

이 가이드는 Codespaces 환경에서 Starship 설정과 함께 ZSH 자동 완성(Auto Suggestions)ZSH 문법 하이라이트(Syntax Highlighting) 를 설정하는 방법을 안내합니다.

목차

기존에 Oh-my-zsh를 사용했던 사람은 uninstall_oh_my_zsh 명령어를 사용해 먼저 삭제합니다.

Starship은 터미널을 예쁘게 꾸미고 싶을 때 사용할 수 있는 패키지입니다.

Starship 설치하기

공식페이지에서 설치법을 참고 하세요. 저는 brew를 사용하는 것을 선호 합니다.

brew install starship

ZSH 설정 파일에 구성 추가

echo "eval \"\$(starship init zsh)\"" >> ${ZDOTDIR:-$HOME}/.zshrc
  1. 저장소(clone) 가져오기
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions

경로는 원하는 위치로 변경할 수 있습니다. 여기서는 ~/.zsh/zsh-autosuggestions 를 사용합니다.

  1. ZSH 설정 파일에 스크립트 추가
echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
  1. 저장소(clone) 가져오기
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
  1. ZSH 설정 파일에 스크립트 추가
echo "source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

참고: 터미널에서 Systemd 관련 메시지가 표시되고 이를 제거하고 싶다면 다음 명령을 실행하세요.

mkdir -p ~/.config && printf "[container]\ndisabled = true" >> ~/.config/starship.toml

완료!

이제 Starship, ZSH 자동 완성, 그리고 문법 하이라이트가 적용된 ZSH을 사용할 준비가 되었습니다.

마음에 들었다면 GitHub에서 작성자를 팔로우해 주세요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment