iTerm2 - macOS Terminal Replacement
知乎借鉴:https://zhuanlan.zhihu.com/p/112383265
brew install --cask iterm2
http://static.kancloud.cn/shellway/iterm2/259185
iterm2 禁用鼠标选择复制

关闭每日提示
Preferences > Advanced > 搜索 Tip of the Day > Disable the Tip of the Day 改为 Yes

资源状态栏
你可以在iterm2中使用快捷键command + ,或者菜单栏打开首选项,进行设置

点击configure status bar将需要的托放在下面既可
title 显示路径,Profiles→General→Basics 中的title勾选PWD

解决 vim 选中文字不能复制的问题
用
vim打开文件,选中文字用command + c复制,不能复制
iterm2 > Preferences > Profiles > Terminal > Enable mouse reporting 去掉勾选

主题地址:
Iterm Themes - Color Schemes and Themes for Iterm2
GitHub 地址:https://github.com/mbadolato/iTerm2-Color-Schemes
使用:直接下载主题包,或者克隆 GitHub
下载压缩包,解压后,
打开 iTerm2 的设置:Preperence → Profiles → Colors → Color Presets。
点击 import选择解压好的主题目录下 schemes目录下的你想要的主题导入。
或者全选全部导入,再一个个挑选切换,导入之后,下载的源文件可以删除。

其他命令
# 手动更新oh-my-zsh
omz update
官网提供的安装方式:
sh -c "$(curl -fsSL <https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh>)"
cd .oh-my-zsh
cp templates/zshrc.zsh-template ../.zshrc
这种方式一般会因为 github 登陆失败(443)而无法安装,因此推荐采用下面的方式安装:
克隆 oh-my-zsh
git clone <https://gitee.com/mirrors/oh-my-zsh> ~/.oh-my-zsh
备份 ~/.zshrc
cp ~/.zshrc ~/.zshrc.bak
将 .oh-my-zsh文件里的的 zshrc.zsh-template文件复制成 zshrc 文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
最后将~/.zshrc.bak的内容复制到~/.zshrc中