MacOS使用技巧
本文最后更新于 2025年6月11日 凌晨
记录在使用MacOS时提高效率的一些系统操作小技巧,不定期更新。
快捷键速查
掌握基础快捷键能显著提升效率:
- 锁屏:
Control + Command + Q
- 定位URL:
Command + L
- 新建窗口:
Command + N
- 删除文件:
Command + 回车
- 最小化/关闭窗口:
Command + M/W
- 退出程序:
Command + Q
- 终端双击复制:选中文本后双击自动复制
- 终端新建Tab:
Command + T
- 同应用多窗口切换:
Command + ~
- 同应用窗口列表:
ctl + 朝下箭头
终端优化:Oh My Zsh + 插件
- 安装 Oh My Zsh:
1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- 配置别名(
~/.zshrc
):1
alias code="open -a 'Visual Studio Code'"
- 安装插件:
- 自动补全:
zsh-autosuggestions
- 语法高亮:
zsh-syntax-highlighting
- Git支持:
git
1
2
3
4
5
6
7# 插件配置片段
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
source ~/.zshrc
- 自动补全:
虚拟机与环境隔离
- 推荐工具:UTM
- 支持多系统镜像,轻量级,适合快速部署测试环境。
包管理器:Homebrew
- 安装命令:
1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 常用操作:
1
2brew install cleanclip # 安装剪贴板管理器
brew update # 更新软件源
docker管理工具
- docker desktop
- orbstack
生产力工具推荐
CleanClip
- 核心功能:
- 快速格式化粘贴(支持表格、代码等)
- 拖拽队列批量粘贴
- 文本拆分与格式预览
- 安装命令:
1
brew install cleanclip
MacOS使用技巧
https://k3ppf0r.github.io/2025/06/10/杂/MacOS使用技巧/