본문 바로가기

Settings

M1 노트북 개발자(DevOps) 초기 셋팅

이 글은 내가 맥북을 새로 살때(또는 이직하여 새로운 맥북을 지급받을때) 참고하기 위해 작성하는 글이다.

 

1. 언어 영어로 변경

System Preferences > Language & Region > 왼쪽에서 '+' 눌러서 English추가 (맥 재시동 필요할 수 있음)

 

2. 마우스 감도 조절 및 무음 클릭

System Preferences > Trackpad > Point Control > Tracking speed 조절

System Preferences > Trackpad > Tap to click 선택

 

3. 세손가락으로 Drag&Drop, 마우스 포인터 크기 조절

System Preferences > Accessibility > Point Control > Trackpad Options > Enable dragging 체크하고 'three finger drag 선택'

System Preferences > Accessibility > Display > Pointer 에서 Pointer size 설정 (보통 중간정도로 사용. 포인터 색상이나 테두리도 여기서 설정할 수 있다.)

 

4. Dock & Menu Bar 숨기기

System Preferences > Dock & Menu Bar 에서 가장 아래 'Automatically hide and show the menu bar in full screen' 선택

 

5. brew 설치

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

위의 명령어 입력 후 brew 정상적으로 수행되지 않는 경우 zshrc 열어서 다음 추가

vi ~/.zshrc

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

 

6. iterm2, chrome, visual studio code, pycharm 설치

-> 그외 필요한 소프트웨어들도 설치. 인터넷에서 다운로드

 

7. git 설치

brew install git

 

8. kubectl 설치

brew install kubectl
# 버전 확인
kubectl version --client

 

9. k9s 설치

brew install k9s

 

10. aws cli 설치

brew install awscli
# 버전 확인
aws --version

 

11. terraform 설치

brew install terraform

 

12. helm 설치

brew install helm

 

13. kubectx 설치

brew install kubectx

 

14. D2Coding 폰트 설치

https://github.com/naver/d2codingfont

들어가서 폰트 다운로드

Font Book 들어가서 다운로드한 폰트 설치

 

15. oh-my-zsh 설치 후 powerlever 10k 테마 적용

>> context값이나 aws account, git branch정보 등을 제공해 주어서 좋아함

# oh-my-zsh 설치
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# powerlevel10k 설치 및 적용
git clone https://github.com/romkatv/powerlevel10k.git $ZSH/themes/powerlevel10k

# ~/.zshrc 파일에 다음을 추가
ZSH_THEME="powerlevel10k/powerlevel10k"

# 터미널에 다음 명령어를 입력함으로써 커스텀할 수 있다.
p10k configure

 

16. 터미널 꾸미기

# command 명령어 초록색/빨간색 표시(가능한 명령어는 초록색, 불가능한 명령어는 빨간색)
# zsh-syntax-highlighting 설치
brew install zsh-syntax-highlighting
# ~/.zshrc 에 다음 추가
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# 사용했던 명령어 자동완성
# zsh-autosuggestions 설치
brew install zsh-autosuggestions
# ~/.zshrc 에 다음 추가
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh

iterm Fonts 적용

iTerm2 > Preferences > Text에서 위에서 다운받았던 D2Coding 적용. Unicode NFC는 한글이 깨지기 때문에 설정

색상 적용(Snazzy다운로드)

curl -LO https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Snazzy.itermcolors

다운로드 후 iTerm2 > Preferences > Colors 우측 하단에 Color Presets 드롭다운 클릭하여 'Snazzy' Import 해줌

터미널 상단바 검은색으로

iTerm2 > Preferences > Appearance 에서 General > Theme: Dark 선택

 

17. 키보드 커서 속도 빠르게(vi모드나 긴 글을 터미널에서 읽을때 기본 속도는 나한테 좀 느림)

System Preferences > Keyboard 에서 Key Repeat과 Delay Until Repeat 값을 제일 오른족으로 설정

 

'Settings' 카테고리의 다른 글

M1에 Apache Tomcat 설치하기  (0) 2023.07.31