mac-dev-setup
mac-dev-setup copied to clipboard
맥 개발환경 초기 설정 저장용
Mac 환경 설정 모음
homebrew 권한 문제 해결 gist
https://gist.github.com/irazasyed/7732946
개발자를 위한 OS X(>= Catalina) 설정
https://www.sangkon.com/osx-setting-for-developer/
맥 초기화 방법
https://support.apple.com/ko-kr/HT204904
- command(⌘)-R : 이후 버전으로 업그레이드하지 않고 Mac에 설치되어 있던 최신 macOS를 설치합니다.
- option-command-R : Mac과 호환되는 최신 macOS로 업그레이드합니다
- shift-option-command-R: Mac과 함께 제공되는 macOS 또는 현재 사용할 수 있는 macOS 중 최신 버전을 설치합니다.
https://pqrs.org/osx/karabiner/ 키보드 맵핑 변경
dns 설정
- Cloudflare https://1.1.1.1/ko-KR/dns/
- Google https://developers.google.com/speed/public-dns
- IBM https://www.quad9.net/apple/
자주 사용하는 프로그램 설치는 Homebrew 사용
# Homebrew 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 이 저장소 클론
git clone https://github.com/seongjoojin/mac-dev-setup
cd mac-dev-setup
# Brewfile 실행
brew bundle
만약 Brewfile가 제대로 설치되지 않는다면 아래 명령어로 추가
# wget 설치
brew install wget
# git 설치
brew install git
# yarn 설치
brew install yarn
java 설치
https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot
터미널
-
hyper => awesome-hyper, 저장소
.hyper.js
참고 - iTerm2
- iTerm2 Color Scheme - Adventure Time
- fish
# fishshell 설치
brew install fish
# 기본 터미널 fishshell로 변경
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
- starship
https://starship.rs/guide/#🚀-installation
- oh-my-fish
# oh-my-fish 설치
curl -L https://get.oh-my.fish | fish
- fish shell config 파일 작성
sudo vi ~/.config/fish/config.fish
- oh-my-zsh
# oh-my-zsh 설치
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
https://github.com/ohmyzsh/ohmyzsh
oh-my-fish 테마 설정 https://github.com/oh-my-fish/oh-my-fish/blob/master/docs/Themes.md
추천 테마 powerlevel10k https://github.com/romkatv/powerlevel10k
zi(zsh 플러그인 매니저) 설치 https://github.com/z-shell/zi/
추천 플러그인 설치
zi light zdharma/fast-syntax-highlighting
zi light zsh-users/zsh-autosuggestions
zi light zsh-users/zsh-completions
zi load zdharma/fast-syntax-highlighting
zi load zsh-users/zsh-autosuggestions
zi load zsh-users/zsh-completions
zsh plugin 설정 https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins
.zshrc 설정
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git
adb
brew
docker
docker-compose
iterm2
flutter
pod
python
node
react-native
xcode
yarn
gradle
gem
npm
vscode)
oh-my-zsh 테마 설정 https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
powerlevel10k
https://github.com/romkatv/powerlevel10k#oh-my-zsh
- zsh shell config 파일 작성
sudo vi ~/.zshrc
유용한 커맨드 라인 도구
커맨드라인 인터페이스 도구
git config --global user.name "Seongjoo Jin"
git config --global user.email "[email protected]"
mysql 설정
설치 : brew install [email protected]
서비스 시작 : brew services start [email protected]
비밀번호 설정 : mysql_secure_installation
mysql 실행 : mysql -u root -p
mongodb 설정
설치 : brew install mongodb-community
실행 : brew services start mongodb/brew/mongodb-community
프로그램
- Hidden Bar
- Dato
- Rocket Fuel
- AppCleaner
- Visual Studio Code
- Google Chrome
- Mozilla Firefox Developer Edition
- Slack
- virtualbox -> https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
- ridibooks
- MindNode 5
- Magnet
- Foldery
- Bandizip
- Trello
- docker
참고 : https://github.com/iCHAIT/awesome-macOS
구글 확장 프로그램
- TrafficLight
- Wappalyzer
- React Developer Tools
- Redux DevTools
- The Marvellous Suspender (탭 관리)
- 파파고 번역 (Papago for Chrome)
- Bitwarden
node-gyp 오류시 해결 방법
https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md
$ sudo rm -rf $(xcode-select -print-path)
$ xcode-select --install
Visual Studio Code 추가 설정
- EditorConfig 설정 - https://gist.github.com/seongjoojin/7c664b2fd78aa526924c1d746df52ab3
- typescriptreact snippet - https://gist.github.com/seongjoojin/c0d9220c371dde09f92c0610be52ba76
ETC
git commit
- https://gitmoji.carloscuesta.me/
- https://github.com/ngryman/cz-emoji
- https://github.com/commitizen/cz-cli