2021년 웹 개발을 위한 나의 새로운 Mac 설정

6014 단어 nodewebdevjavascript


나는 최근에 새로운 Mac을 얻었고 처음부터 설정하기로 결정했습니다. 이 블로그 게시물에서는 일상적인 웹 개발 작업에 도움이 되도록 설치한 모든 도구의 자세한 목록을 볼 수 있습니다.

도트파일이 없나요?

I do have two dotfiles repo, but they kind of fall behind and are outdated. Also, I was not 100% satisfied with my setup, so I decide to start with a clean slate.

기초 설정

First thing, you will need a password manager. With a new computer, you will need to log in to many services, like Github, email, etc., so it is better to set up your password manager first. I use 1Password 내 기본 암호 관리자.

둘째, 삶을 더 쉽게 만들려면 Mac용 패키지 관리자를 구하십시오. 나는 brew에 대해 이야기하고 있습니다. 터미널을 통해 도구의 90%를 설치할 수 있습니다.

터미널 설정

Now iTerm2, a terminal emulator, this a personal choice, and feel free to install anything else you want or use the default mac terminal, which I did btw for over two years.

brew install --cask iterm2
Continuing with iterm2, I love the night owl theme for both my terminal 및 내 코드 편집기.



변경할 수 있는 또 다른 설정은 모양을 최소로 설정하는 것입니다.



zsh oh-my-zsh을 설치하면 기록 및 자동 완성과 같은 기능을 통해 터미널을 한 단계 업그레이드할 수 있습니다. 따라서 더 이상 "그 명령은 무엇입니까?"

노드 환경 설정

For Node js, I use a node version manager, nvm. This allows me to install different versions of nodejs and switch between them from the terminal. to install nvm, you can use brew

sh brew install nvm mkdir ~/.nvm nvm install stable

For the node package manager, npm already comes bundled with nodejs, but sometimes I might need yarn so let's install it using brew.

brew install yarn

git 및 소스 제어 설정

I use Github to host all my repositories if you follow this tutorial SSH 키를 설정합니다.

또 다른 중요한 것은 khaled@MBP 과 같이 커밋에 대한 임의의 저자 세부 정보를 얻는 대신 git에게 당신이 누구인지 알려주는 것입니다.

git config —global user.name "FIRST_NAME LAST_NAME."
git config —global user.email "[email protected]."


Github hub을(를) 설치할 수 있습니다. Github 허브는 터미널에서 리포지토리를 만들고 터미널에서 직접 풀 요청을 시작하는 것과 같이 git 위에 몇 가지 뛰어난 기능을 추가합니다.

코드 편집기 및 워크플로우

For coding, I use mostly nvim and tmux because I love seeing everything in one window, something like this:

그리고 vscode에 통합 터미널이 있다는 것을 알고 있습니다. tmux를 사용하면 패널에서 확대하는 것과 같은 작업을 신속하게 수행하고 동일한 터미널 창 내부의 세션을 사용하여 여러 프로젝트 간에 신속하게 축소하고 전환하는 것과 같은 작업을 수행할 수 있습니다.

내 모든 nvim, tmux 및 coc 구성here을 찾을 수 있으며 이를 설명하기에 충분한 주석이 있어야 합니다.

엑스트라

If you have an external monitor that is not supported officially by Apple, you can't control your monitor's brightness, contrast, or volume. Luckily there is a utility that you can install to fix that.

brew install --cask monitorcontrol
I also use Alfred , Mac용 생산성 앱. Dropbox를 사용하여 여러 컴퓨터 간에 Alfred 설정을 동기화 상태로 유지할 수 있습니다here's how to do it.

좋은 웹페이지 즐겨찾기