zsh 궁극기 세팅—준비됐지? 😎
지금부터 zsh-autosuggestions, zsh-syntax-highlighting, 그리고 추천 설정까지 한 방에 끝내주는 스크립트 구성해줄게. 아래 순서로 따라만 하면 돼!
🛠️ 1. 필요한 패키지 설치
sudo apt update sudo apt install zsh git curl -y
🌀 2. Oh My Zsh 설치
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
설치 중 물어보는 건 그냥 yes, Enter 눌러주면 돼.
💡 3. 필수 플러그인 설치
# autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions # syntax highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
⚙️ 4. ~/.zshrc 수정
- 다음 명령어로 열기:
nano ~/.zshrc
- plugins=(...) 부분을 아래처럼 바꾸기:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
- 맨 아래에 하이라이트 색 추가 (더 잘 보이게):
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=cyan'
- 저장: Ctrl + O → Enter → Ctrl + X
♻️ 5. 설정 반영
source ~/.zshrc