默认的 Mac 终端是不支持多个远程链接的,也不支持多个 tab,通过配置使用 iTerm2 替换默认终端可以很方便的解决这些需求。
下载地址
https://iterm2.com/downloads/stable/iTerm2-3_4_15.zip
安装
解压后,直接拖进应用程序即可。
配置管理多个远程链接并支持自动登录
...大约 2 分钟
默认的 Mac 终端是不支持多个远程链接的,也不支持多个 tab,通过配置使用 iTerm2 替换默认终端可以很方便的解决这些需求。
https://iterm2.com/downloads/stable/iTerm2-3_4_15.zip
解压后,直接拖进应用程序即可。
使用快捷键 Command+Option+H,可以实现快速隐藏除当前应用程序之外所有程序窗口的目的。 使用快捷键 Command+Option+M+H,可以实现快速隐藏所有应用程序窗口的目的。
利用macOS的自动操作可以大大的提升我们的工作效率。
步骤如下:
1、搜索 自动操作 启动。

2、点击右侧Tab,打开资源库。

文章更新历史
2022/05/11 feat:初稿。
话说,这都 2022 年了,Mac 的 unzip 还是不支持中文名。
找到了几个方案,试了下,最终还是果断用别的代替。
之前的方案有两个
这个找到了源码,但是鼓捣半天没成功,后面在折腾吧。。。
https://sourceforge.net/projects/infozip/files/latest/download
# 替换各个源
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
# zsh 替换 brew bintray 镜像
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
# bash 替换 brew bintray 镜像
# echo 'export HOMEBREW_BOTTLE_DOMAIN=https://# mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
# source ~/.bash_profile
# 刷新源
$ brew update
brew install nginx
结果如下:
==> Installing nginx
==> Pouring nginx--1.21.6.monterey.bottle.tar.gz
==> Caveats
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
To restart nginx after an upgrade:
brew services restart nginx
Or, if you don't want/need a background service you can just run:
/usr/local/opt/nginx/bin/nginx -g daemon off;
==> Summary
🍺 /usr/local/Cellar/nginx/1.21.6: 26 files, 2.2MB
==> Running `brew cleanup nginx`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> nginx
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
To restart nginx after an upgrade:
brew services restart nginx
Or, if you don't want/need a background service you can just run:
/usr/local/opt/nginx/bin/nginx -g daemon off;
➜ ~