Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

맥북 터미널 사용성 개선을 위한 zsh 플러그인 설치

2024-05-09 by 편리

개발을 하다 보니 알게 모르게 맥북에서 터미널을 사용하는 경우가 많다. 터미널 사용 때 편의성 개선을 위해 아래 두 개의 zsh 플러그인을 설치할 예정이다.

  • zsh-syntax-highlighting
  • zsh-autosuggestions

설치는 brew 를 이용해서 진행할 예정이고 brew 가 설치되어 있지 않다면 아래 명령을 통해 설치를 진행한다.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

oh-my-zsh 가 설치되어 있지 않다면 아래 명령을 통해 설치를 진행한다.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

플러그인 설치는 아래와 같이 진행한다.

brew install zsh-autosuggestions
brew install zsh-syntax-highlighting

설치를 마친 후 플러그인을 사용하기 위해서는 ~/.zshrc 파일에 아래의 내용을 추가해줘야 한다.

source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

zsh-syntax-highlighting 활성화 후 highlighters directory not found 오류가 화면에 표시된다면 ~/.zprofile 파일에 아래의 내용을 추가해 준다.

export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=$HOMEBREW_PREFIX/share/zsh-syntax-highlighting/highlighters

위에서는 brew 를 이용한 설치를 살펴봤다. 이번에는 oh-my-zsh 플러그인 방식으로 설치하는 법을 알아보겠다.

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

플러그인 설치 완료 후 ~/.zshrc 파일의 plugins 부분에 설치한 플러그인을 추가해 준다.

plugins=([plugins...] zsh-autosuggestions zsh-syntax-highlighting)

zsh-syntax-highlighting 활성화 후 highlighters directory not found 오류가 화면에 표시된다면 ~/.zprofile 파일에 아래의 내용을 추가해 준다.

export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/highlighters

추가로 oh-my-zsh 자동 업데이트를 위해서는 autoupdate 플러그인을 설치하면 된다.

git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins ~/.oh-my-zsh/custom/plugins/autoupdate

설치 후 ~/.zshrc 파일 plugins 설정에 autoupdate 를 추가해 준다.

plugins=([plugins...] zsh-autosuggestions zsh-syntax-highlighting autoupdate)

Post navigation

Previous Post:

VS Code 설치 후 PATH 에 code 명령 추가

Next Post:

카멜 QHD 프리즘 포터블 모니터 CPM1610IQ

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • SK 세븐모바일 유심 셀프교체
  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용
  • OpenLiteSpeed 웹어드민 도메인 연결
  • WireGuard를 이용한 VPN 환경 구축
  • Ubuntu 22.04 서버에 OpenLiteSpeed 웹서버 세팅
  • 맥 vim 세팅

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes