MacOS使用技巧
本文最后更新于 2025年6月26日 上午
记录在使用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:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- 配置别名(
~/.zshrc
):alias code="open -a 'Visual Studio Code'"
- 安装插件:
- 自动补全:
zsh-autosuggestions
- 语法高亮:
zsh-syntax-highlighting
- Git支持:
git
# 插件配置片段 plugins=( git zsh-autosuggestions zsh-syntax-highlighting ) source ~/.zshrc
- 自动补全:
虚拟机与环境隔离
- 推荐工具:UTM
- 支持多系统镜像,轻量级,适合快速部署测试环境。
包管理器:Homebrew
- 安装命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 常用操作:
brew install cleanclip # 安装剪贴板管理器 # 安装php brew install php@8.1 curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer sudo chmod a+x /usr/local/bin/composer composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ brew update # 更新软件源
docker管理工具
- docker desktop
- orbstack
生产力工具推荐
CleanClip
- 核心功能:
- 快速格式化粘贴(支持表格、代码等)
- 拖拽队列批量粘贴
- 文本拆分与格式预览
- 安装命令:
brew install cleanclip
自定义应用程序 Automator
burpsuite
1、用Spotlight搜索打开Automator
2、新建一个 应用程序
3、添加 运行Shell脚本
操作
4、填写如下内容:
#!/bin/bash
cd /Users/your_name/BurpSuiteV2025.6/macOS
/Users/your_name/BurpSuiteV2025.6/macOS/CN_Burp.sh
5、按Command + S,选择一个名字,比如 Burp.app
6、换一个burp小图标(格式为icons),显示包内容 -> 替换 /Contents/Resources/ApplicationStub.icns
MacOS使用技巧
https://k3ppf0r.github.io/2025/06/10/杂/MacOS使用技巧/