본문 바로가기
MacOS

[MacOS] .zshrc로 zsh 설정하기

by carprefer 2025. 11. 1.
brew install zsh-syntax-highlighting
brew install zsh-autosuggestions
vi ~/.zshrc
export CLICOLOR=1

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


autoload -Uz vcs_info

setopt prompt_subst
zstyle ":vcs_info:*" enable git
zstyle ":vcs_info:*" formats "%F{magenta}%r(%b)%f "

PROMPT='%(?:%F{green}%1{➜%}%f :%F{red}%1{➜%}%f )%F{cyan}%B%c%b%f %B${vcs_info_msg_0_}%b%F{blue}%(!.#.$)%f '

precmd() { vcs_info }


alias ..='cd ..'
alias ...='cd ../..'

 

 

참고 글

 

[기타] oh-my-zsh, iTerm2 없이 mac 터미널 세팅하기

터미널 커스터마이징 mac을 구매하고 처음 터미널을 열면 검은 바탕에 흰 글씨만 보인다. 개발자스러운 디자인이지만, 실제 개발자들은 대부분 이대로 사용하지 않는다. 가독성이 떨어질 뿐만

easy-to-read.tistory.com

 

 

'MacOS' 카테고리의 다른 글

[MacOS] 맥 깨워두기  (0) 2025.12.23
[MacOS] LazyVim 설치하기(M4)  (0) 2025.11.04
[MacOS] Docker 설치하기(M4)  (0) 2025.11.02
[MacOS] .vimrc로 Vim 설정하기  (0) 2025.11.01
[MaxOS] Macbook에 homebrew 설치하기(M4)  (0) 2025.11.01