1) Rosetta 설치
softwareupdate --install-rosetta
맥에 Rosetta를 설치해야 하는 이유
https://support.apple.com/ko-kr/HT211861
Mac에 Rosetta를 설치해야 하는 경우
Rosetta 2를 사용하면 Intel 프로세서가 장착된 Mac용으로 제작된 앱을 Apple Silicon이 장착된 Mac에서 사용할 수 있습니다.
support.apple.com
2) Homebrew설치 (Xcode 자동으로 설치 됨)
M1용 brew 설치하기
Homebrew
The Missing Package Manager for macOS (or Linux).
brew.sh
설치 후 $ brew --version 을 치게되면 zsh: command not found: brew 라는 오류 발생
Add Homebrew to your PATH in /Users/<홈이름>/.zprofile:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/insutance/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
-- 위와 같이 나오게 된다면 아래 1,2번 실행
1. echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<홈이름>/.zprofile
2. eval "$(/opt/homebrew/bin/brew shellenv)"
3) Git 설치
brew install git
계정 연동하기
$ git config --global user.name "사용자명"
$ git config --global user.email "메일주소"
4) Github Desktop 설치
brew install github
5) iterm2 & oh my zsh
iterm2 설치
brew install iterm2
접근 권한 설정
시스템 환경설정 -> 보안 및 개인정보 보호 -> 전체 디스크 접근 권한 -> iTerm 체크
oh-my-zsh 설치
https://github.com/ohmyzsh/ohmyzsh
GitHub - ohmyzsh/ohmyzsh: 🙃 A delightful community-driven (with 1900+ contributors) framework for managing your zsh configu
🙃 A delightful community-driven (with 1900+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pytho...
github.com
m1 맥 기본 터미널 shell이 zsh가 됐다.
바로 oh-my-zsh 설치하기
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
5-1) iterm 꾸미기
가장 많이 쓰는 테마 agnoster 설치하기
vi ~/.zshrc
에서 robbyuessell -> agnoster로 바꾸자.
편집기를 저장하고
source ~/.zshrc
명령어를 입력해 저장된 파일을 실행해 준다.
폰트가 깨집니다. 폰트 바꿔줘야함
폰트 변경 (D2codingfont) 현재 1.3.2
https://github.com/naver/d2codingfont
GitHub - naver/d2codingfont: D2 Coding 글꼴
D2 Coding 글꼴. Contribute to naver/d2codingfont development by creating an account on GitHub.
github.com
zip파일 다운로드 후 파일 설치하기
iterm preferences.. -> profile -> text -> font를 d2coding으로 변경
oh my zsh 플러그인 적용
zsh Syntax Highlight 적용하기
syntax highlight는 사용 가능한 명령어들에 highlight를 넣어주는 기능입니다.
brew install zsh-syntax-highlighting
vi ~/.zshrc
편집기 맨 마지막줄에
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
추가
source ~/.zshrc
적용해주기
zsh auto suggestions 적용하기
명령어 자동완성 기능입니다.
brew install zsh-autosuggestions
vi ~/.zshrc
편집기 맨 마지막 줄에
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
추가
source ~/.zshrc
적용해주기
터미널에 컴퓨터이름 제거하는 방법
https://falaner.tistory.com/83
맥 터미널 iTerm2(oh-my-zsh) 컴퓨터 이름 삭제, 이름 변경 및 명령어 자동완성 기능 사용하기
맥북 터미널을 사용하다 보면 아래와 같이 컴퓨터의 이름까지 길게 보이는 것을 볼 수 있습니다. 크게 상관 없지만 긴 명령어를 치거나 하면 줄이 넘어가거나 하는 불편함이 생기게 됩니다. 그
falaner.tistory.com
완성!
6) Java설치
homebrew를 사용하면 여러 자바 버전을 편리하게 설치할 수 있다.
https://llighter.github.io/install-java-on-mac/
맥에서 Brew로 자바 설치하기(feat. 자바버전 바꾸기)
llighter.github.io
7) 한영 전환
윈도우도 같이 사용하는 유저라면 cabs lock은 불편하다.. 오른쪽 command로 바꾸기
https://blog.naver.com/whitepolarbear/222324138111
맥북 한영전환 오른쪽 command로 바꿔보자!
최근 주변을 돌아보면 윈도우 OS를 사용하는 분들이 거의 대부분이기는 하지만 애플의 macOS를 사용하...
blog.naver.com
'일상' 카테고리의 다른 글
현대IT&E SW개발자 양성 과정 3기를 마치며 + 최종 합격 후기 (73) | 2022.06.25 |
---|---|
현대IT&E 채용확정형 SW개발자 양성과정 3기 합격 후기 (18) | 2022.01.20 |
[일상] 생각 정리 (NSHC 방문) (3) | 2022.01.14 |
댓글