본문 바로가기
개발환경 & 팁

개발환경 설정(for silicon mac)

by jalynneyoon 2022. 10. 22.

개인장비를 교체하면서 참고용으로 어떻게 개발환경을 설정해뒀는지 기록해두었습니다.

1. homebrew 설치 등

  • homebrew 설치
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/<USER_ID>/.zprofile

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<USER_ID>/.zprofile

eval "$(/opt/homebrew/bin/brew shellenv)"
  • Chrome 설치
brew install --cask google-chrome
  • iterm2 설치
brew install iterm2

2. 터미널 세팅

  • 프롬프트에 hostName 뜨지 않도록 설정

    다음처럼 config 파일 열어서, 원하는 옵션에 맞춰 아래 내용을 추가

vim .zshrc 
  • userName 만 보이게 하고 싶을 경우
prompt_context() {
  if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
  fi
}
  • userName도 숨기고 싶은 경우
prompt_context() {
  if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
  fi
}
  • oh-my-zsh 설치
sh -c "$(curl -fsSL <https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh>)"

​ - Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

git clone <https://github.com/zsh-users/zsh-autosuggestions> ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

​ - Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

plugins=( 
    # other plugins...
    zsh-autosuggestions
)

​ - Start a new terminal session.

  • oh-my-zsh 테마설정
vim .zshrc ## 열어서 다음과 같이 세팅

ZSH_THEME="agnoster"
  • 터미널 폰트 깨짐 수정

    • 폰트 다운 받을 수 있는 깃헙 들어가서 폰트를 다운받아 원하는 폰트를 다운받는다.

    • iterm2 환경 설정에서 다운받은 폰트인 SourceCodePro 로 세팅

3. iOS 개발 관련

brew install cocoapods
  • Xcode setting 에서 애플계정과 깃허브 계정 연동

4. github / git

  • 액세스 토큰 발급

  • 필요한 프로젝트 clone

  • 프로젝트별 이메일, 유저이름 config

  • git status 할 때 한글 깨짐 해결하려면 다음과 같이 설정한다.

git config --global core.quotepath false

5. 기타 프로그램 다운로드

  • Markdown editor

    • notion

    • typora

  • gitkraken

  • figma

'개발환경 & 팁' 카테고리의 다른 글

파일 경로 보기 좋게 나타내기  (0) 2021.08.01

댓글