터미널에서 이전에 실행했던 명령어가 회색으로 자동 제안되는 기능은 zsh-autosuggestions 플러그인을 사용하면 된다.
1. zsh-autosuggestions 설치
git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
2. .zshrc에 플러그인 추가
plugins=(git zsh-autosuggestions)
3. 설정 적용
source ~/.zshrc
이후 명령어를 입력하면 이전에 사용했던 명령어가 회색으로 자동 제안되며 → 키로 바로 완성할 수 있다.
같이 사용하면 좋은 플러그인
zsh-syntax-highlighting
명령어 문법을 색상으로 표시해 잘못된 명령어를 쉽게 구분할 수 있다.
설치
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
.zshrc 설정
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
적용
source ~/.zshrc
💡 zsh-autosuggestions + zsh-syntax-highlighting 조합은 많은 개발자들이 기본적으로 사용하는 터미널 생산성 플러그인 조합이다. 🚀
'AI_Development > dev' 카테고리의 다른 글
| Docker 환경구성 (0) | 2026.03.11 |
|---|---|
| Cursor에서 SSH를 통해 원격 서버 Docker 컨테이너에 접속하는 방법 (1) | 2025.08.11 |
| 자주 쓰는 Docker 명령어 4가지 간단 정리 (0) | 2025.05.19 |
| Docker에서 코드 변경이 반영되지 않을 때?🐳 — 이미지 캐시의 함정 (0) | 2025.05.19 |
| openai api 실습관련 에러 ( ValidationError: 1 validation error for OpenAI, NotFoundError: Error code: 404, RateLimitError: Error code: 429) (0) | 2024.02.09 |