[Mac] terminal 자동완성 및 하이라이팅

Noah·2024년 6월 8일
0

Mac

목록 보기
1/1
post-thumbnail

zsh를 활용한 터미널 자동완성 및 하이라이팅 기능이다.

자동 완성 (AutoSuggestions)

1. git source code download

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

2. ~/.zshrc 추가

source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

3. zshrc 다시 시작

source ~/.zshrc

하이라이팅 (Syntax Highlighting)

1. git source code download

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

2. ~/.zshrc 추가

source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

3. zshrc 다시 시작

source ~/.zshrc

단축키 변경

1. zshrc에 추가

자동완성 tab 으로 변경

bindkey '\t' autosuggest-accept

2. zshrc 다시 시작

source ~/.zshrc
profile
Flutter Specialist

0개의 댓글