Dev/환경세팅

[Mac] Iterm2 + HomeBrew 설치

younsik 2022. 4. 30. 17:51

22.04.06 기준으로 작성 되었습니다

 

Intel & M1 Mac에서 동일하게 작동합니다

 

Mac 개발 환경의 초기 세팅을 위해 Iterm2와 HomeBrew를 설치해봅니다

 

1. Iterm2 설치

 

https://iterm2.com

 

iTerm2 - macOS Terminal Replacement

iTerm2 by George Nachman. Website by Matthew Freeman, George Nachman, and James A. Rosen. Website updated and optimized by HexBrain

iterm2.com

 

위 사이트에 접속해서 iTerm2를 다운로드하고 설치합니다

 

설치가 완료되었으면 다음 설정을 진행합니다 (굳이 안하셔도 됩니다)

1) Title bar style
Appearance > Theme: Minial
 
2) Title bar 밑에 1px 라인제거
Appearance > Windows > Show line under title bar when the tab bar is not visible: 체크 안함

3) 폰트 크기 및 줄간격 변경
Profiles > Text: 폰트사이즈 14로 변경
Profiles > Text: n/n 줄간격 110으로 변경

4) Margin 수정
Appearance > Panes > Side margins: 12
Appearance > Panes > Top & bottom margins: 10

5) 탭 선 제거
Advanced > In minimal theme, how prominent should the tab outline be?: 0

6) Unicode 설정
Profiles > Text > Unicode normalization form: NFC

7) 상태바 활성
Preferences > Profiles > Session > Status bar enabled

8) 상태바 위치 설정
Preferences > Appearance > Status bar location

 

2. Command Line Tool 설치

터미널(iTerm2)에서 다음 명령어를 통해 Command Line Tool을 설치합니다

 

최근에 업데이트 또는 Xcode 설치가 되었으면 최신버전이라는 문구가 나옵니다

xcode-select --install

 

3. HomeBrew 설치

https://brew.sh/index_ko

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

 

위 링크에 접속하면 화면에 나오는 다음 명령어를 터미널에 입력해서 설치합니다

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

설치가 완료되었으면 Home directory 내 .zprofile 수정이 필요합니다

vim ~/.zprofile

 

vim으로 열린 ~/.zprofile 내에 다음 추가해주세요

eval "$(/opt/homebrew/bin/brew shellenv)"

 

vim 저장 후 나가서 다음 명령어를 실행합니다

eval "$(/opt/homebrew/bin/brew shellenv)"

(선택) 다음 Brew 설치 목록 중 필요한 것을 설치합니다

# font : 강력 추천
brew install homebrew/cask-fonts/font-d2coding

# font
brew install homebrew/cask-fonts/font-jetbrains-mono

# 겉멋 용도 입니다 
brew install neofetch

# Json 볼 때 편함
brew install jq

# 디렉토리 및 파일을 tree 구조형태로 보여줌 : 강력 추천
brew install tree

brew install fasd

brew install rg

brew install lsd