Basic tips for using mac notebook

Common skills for using mac computers

When you first switch from a Windows computer to a mac computer environment, there are many things that don't apply. Generally speaking, one tip to remember is that the ctrl key in the windows system is equivalent to the command key on a mac computer. By the way, if a mac computer does not use a mouse, the user The experience will be better.

1. Early system preparation

Because I have never used an iPhone, and my mobile phones are all made in China, so I don’t have an Apple ID. I can just
register one here. After all, this place is better for unified users of Mac computers.

  1. After entering the system, I got used to the set of Windows desktop icons, so each of my apps has a desktop shortcut. I just define the sorting method of the desktop by myself, and just choose the organization method I want. Here’s how to organize it
    Insert image description here
  2. Because I usually use iterm for work, I will first configure this location to a style I am familiar with.

Change the color and font color of the terminal to what I want.
Open the terminal and click "Terminal" in the upper left corner to find "Preferences", select the format you want, and change it to "Default".

Insert image description here
Download commonly used software

首先打开iterm你会看到一长串的前缀,我一般会改成自己喜欢的简洁方式
sudo scutil --set hostname  “自己想的名字”

iterm does not have ll command

自己写一个~/.bash_profile的配置文件
	#定义你需要的命令
	alias ll='ls -alF'
	alias la='ls -A'
	alias l='ls -CF'
source ~/.bash_profile加载配置
每次重启终端后配置的不生效.解决方案如下:
	在~/.zshrc文件最后,增加一行:
	source ~/.bash_profile
安装OS X 系统特有的zsh,也可以理解为『终极 Shell』

The address is https://ohmyz.sh/#install

Install zsh method

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

一般国内的网络会遇到“curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused ”
解决方案是,将自己的本机的/etc/hosts追加一句,就可。

199.232.68.133 raw.githubusercontent.com

Install Mac’s package manager Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install search tool ag

brew install the_silver_searcher

iterm2 installs sz and rz

https://cloud.tencent.com/developer/article/1550800

The above is my introduction to all the commands and corresponding basic operations. I will add them later if there is demand.

Guess you like

Origin blog.csdn.net/weixin_42602433/article/details/109247201