A browser

As the saying goes, you can do everything on the Web, so the first thing you do is download Chrome and sync all your bookmarks.

Two terminals

As a developer, the terminal is the most basic usage scenario, so the following is the basic configuration for the terminal.

1. Download and installItem2 , according to the document operation.

I personally don’t like a solid black background, so make it transparent, and of course, you can set a background that you like. The default length and width of Item2 is too small. Here we will reset the default length and width to 80 * 25.



The effect is shown below.





2. Download and configurezshThere is a lot of official acquiescenceThe theme, there are also many third-party topics, such as some on Zhihurecommended, others can be Google, the theme I chose here isPI

curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh

Copy the code

Choose a theme you like and change it in the configuration

vi .zshrc
Copy the code



3, installation,homebrem

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
Copy the code

4, add common commands, if you encounter effective problems, refer to the Liunx system environment variables read sequence

# create and compile
vi .bashrc
alias 'll = ls -a -l'
# Make the command take effect
souce .bashrc
Copy the code

5, Install NVM, install version Node.js

View the list of remote versions
nvm ls-remote
A stable development version is usually installed
nvm install 14
In order to test production environment services, sometimes you may need to install another version
nvm install xxx
Copy the code

Install git, redis, and nginx

# install git
brew install git
# installed redis
brew install redis-server
# to install nginx
brew install nginx
Copy the code

Redis is generally adjusted to start in background mode

vi /opt/homebrew/etc/redis.conf
Copy the code





7. Configure Github SSH

# generate SSH
ssh-keygen -t rsa -b 2048 -C "[email protected]"
# configuration
vi .ssh/config
Host www.github.com
    HostName  www.github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/github_id_rsa
    
cat .ssh/github_id_rsa.pub
Copy the code

SSH /github_id_rsa.pub

cat .ssh/github_id_rsa.pub
Copy the code

Three compiler

1, downloadvscode, run Commond + Shift + p, open terminal command, execute shell path tocodeAdd environment variables to facilitate opening code at the terminal



2. After that, synchronize VScode Settings, which I usedSettings SyncThe plug-in

Iv. Other Workflows

Install switchHost 5 install Alfred 6 install Language 7 install calendar 8 install WPS office suite