1. iTerm2
자타 공인 맥의 터미널 베스트셀러.
Downloads 페이지에서 Stable Release를 받아서 압축을 풀고 "응용 프로그램"에 옮겨주면 설치 완료!
2. Homebrew
거의 필수 유틸인 Mac OS 패키지 관리자 홈 브루 설치.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
설치가 끝나면 "Next steps" 라고 설명이 나오는데, 이걸 해줘야 PATH에 홈 브루가 세팅되서 편하게 쓸 수 있다.
// {User Name}에 계정명이 들어가니 터미널에 뜬 메시지를 복사해서 쓰자.
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/{User Name}/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
3. Oh-my-zsh
지금은 Mac의 기본 터미널 쉘인 zsh을 편하게, 멋지게 쓸 수 있도록 만들어주는 프레임워크.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
4. Powerlevel10k
흔히 개발자들의 멋진 터미널 화면으로 꾸며주는 가장 중요한 테마 설정.
// 업데이트가 되는 경우, echo 부분 경로가 달라질 수 있다. {version} 주의.
// $ brew info powerlevel10k
// 명령어를 사용하여 경로를 확인해서 수정해주면 된다.
brew install romkatv/powerlevel10k/powerlevel10k
echo 'source /opt/homebrew/Cellar/powerlevel10k/{version}/powerlevel10k.zsh-theme' >>~/.zshrc
위와 같이 설정한 후, 쉘을 재시작하거나 source ~/.zshrc 해주면 아래와 같이 뜨게 될 것이다.
나오는 메시지를 잘 보고 원하는대로 설정을 진행하면 된다.
다 마치고 나면 아래와 같이 Before - After 가 완성!
5. zsh 설정
1. Syntax Highlighting
// 버전 바뀔 수 있음
brew install zsh-syntax-highlighting
source /opt/homebrew/Cellar/zsh-syntax-highlighting/0.7.1/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2. autosuggestions
// 버전 바뀔 수 있음
brew install zsh-autosuggestions
source /opt/homebrew/Cellar/zsh-autosuggestions/0.7.0/share/zsh-autosuggestions/zsh-autosuggestions.zsh
3. iTerm2 Preferences
1. Profiles - Window - Transparency : 약간의 투명도를 주면 그것도 멋지다.
2. Profiles - Text - Font : 이건 선호하는 폰트를 쓰거나, 폰트가 깨지면 "powerline font" 라고 검색해서 전용 폰트로 바꿔준다.
3. Profiles - Colors - Color Presets : 이건 커스텀 프리셋을 받아서 쓸 수도 있고, 나는 기본 중에 "smoooooth"를 선호한다.
6. References
맥북을 새로 사게 되어서 이번에 세팅을 하며 정리를 해보았는데, Medium의 게시물을 많이 참고했다.
Homebrew의 설치 경로가 바뀌었는지, source 하는 부분마다 좀 손이 가긴 했는데, 대부분 기존에 쓰던 세팅과 같아서 좋았다.
'개발공부 > General' 카테고리의 다른 글
[Vim] .vimrc 설정 (0) | 2023.01.31 |
---|