文章目录
系统偏好 System Preferences
Trackpad
- 勾选所有Trackpad中选项
- 开启三指拖拽
- Accessibility -> Mouse & Trackpad -> Trackpad Option …
- Enable dragging > three finger
Desktop & Screen
- Screen Saver -> Fliqlo(翻页时钟屏保)
- Screen Saver -> Hot Corner9s(热区)
Mission Control
- Group windows by application
Security & Privacy
- 允许任何来源的应用
sudo spctl --master-disable
- 选择 Anywhere
应用
菜单栏
- Itsycal - 时间&日历
- Bartender 3 - 隐藏应用(setapp)
- iStat Menu - 系统监控(setapp)
- One Switch
- 休眠管理
- AirPods耳机连接
- 显示/不显示隐藏文件
- ……
学习
- 欧陆词典
- 印象笔记
- MarginNote
- 幕布
- Typora
效率工具
- Alfred
- PopClip
- Things - GTD工具
- Xmind - 思维导图
- Toggle
IT
- Dash - API文档
- iTerm2 - 终端
- VirtualBox - 虚拟机
- Sublime
- Docker
系统
- CleanMyMac (setapp)
- BetterZip 4 (setapp)
- iMazing - iOS管理
- BetterTouchTool (setapp)
- Betterzip (setapp)
其他
- Cheatsheet - 快捷键显示
- ClashX - 代理
- iPic - 图床工具
- f.lux - 护眼,自动夜间模式
- Dropbox
- 坚果云
配置
Homebrew
包管理器 Homebrew
- 安装
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Quick Look
预览插件
List of useful Quick Look plugins for developers
部分插件下载
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize
oh-my-zsh
- oh-my-zsh 安装
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- 终端默认切换成 zsh
chsh -s /bin/zsh
- 配置 Meslo 字体
默认主题需要此字体支持
下载地址:Meslo LG M Regular for Powerline.ttf
直接安装,然后打开 iTerm2,按Command + ,
键,打开 Preferences 配置界面,然后Profiles
->Text
->Font
->Chanage Font
,选择Meslo LG M Regular for Powerline
字体。
Oh-my-zsh主题
- 插件
自带插件:
- git - 简洁git命令
- z - 快速访问目录
- extract - 直接用x解压压缩包
- wd - 目录映射
- sudo - 快速添加sudo
- sublime - 简洁sublime打开文件命令
oh-my-zsh自带插件目录/介绍
第三方 - zsh-syntax-highlighting - 检查命令
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
mv zsh-syntax-highlighting ~/.oh-my-zsh/plugins
- zsh-autosuggestions - 自带建议命令
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
打开修改配置文件~/.zshrc
plugins=(git z extract encode64 urltools zsh-syntax-highlighting wd sudo sublime zsh-autosuggestions
)
- 代理设置
打开添加配置~/.zshrc
alias proxy='export all_proxy=socks5://127.0.0.1:1086'
alias unproxy='unset all_proxy'
- 用户名隐藏
DEFAULT_USER="xishuai"
iTerm2
- 快捷键配置
- 使
option
+←/→
能按单词移动
Profiles
→Keys
→Load Preset...
→Natural Text Editing
- 快速隐藏/显示 iTerm2
Keys
->Hotkey
eg:Command
+`````
- 常用快捷键
- 清除当前行:Ctrl + U
- 到行首/行尾:Ctrl + A/E
- 搜索命令历史:Ctrl + R
- 清除光标之后的字符:Ctrl + K
- 清除缓存:Command + K
- 垂直分屏: command + d
- 水平分屏 :command + shift + d
- 切换屏幕:command + option + 方向键 或 command +[\]
- 切换标签:command + 数字
- 切换全屏:command + enter
Sublime
- 安装Package Control
插件管理
control
+`````或View
->Show Console
显示控制台,将下面代码输入其中运行
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
安装的插件
- Anaconda - Python管理
- DashDoc - 与Dash联动
- SideBarEnhancenments - 边栏右键增强插件
- SublimeCodeIntel
- Theme - Afterglow - 主题
- Setting
{
"bold_folder_labels": true,
"close_windows_when_empty": false,
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
//主题的配置
"line_padding_bottom": 1, //编辑区的上下行距
"line_padding_top": 1,
"tabs_small": true, //编辑区文件栏的大小
"theme": "Afterglow.sublime-theme", //侧边栏的主题样式
"update_check": false
}
- 热键设置
Preferences
->Key Binding
[
//DashDoc热键设置
{ "keys": \["super+shift+d"], "command": "dash\_doc"},
//切换标签页修改
{ "keys": \["alt+1"], "command": "focus\_group", "args": { "group": 0 } },
{ "keys": \["alt+2"], "command": "focus\_group", "args": { "group": 1 } },
{ "keys": \["alt+3"], "command": "focus\_group", "args": { "group": 2 } },
{ "keys": \["alt+4"], "command": "focus\_group", "args": { "group": 3 } },
{ "keys": \["ctrl+5"], "command": "focus\_group", "args": { "group": 4 } },
{ "keys": \["ctrl+6"], "command": "focus\_group", "args": { "group": 5 } }
]
- Python编译运行
Tools
->Build System
->New Build System..
输入下面配置
{
"cmd": \["/usr/local/bin/python3", "-u", "$file"],
"file\_regex": "^\[ ]\*File \\"(...\*?)\\", line (\[0-9]\*)",
"quiet": true
}
保存为编译环境名称eg:pyhton3
,Command + B
运行
- Anaconda 配置
{
"anaconda\_linting":false
{
"auto_formatting": true,
"autoformat_ignore":
[
],
"pep8_ignore":
[
"E501"
],
"anaconda_linter_underlines": false,
"anaconda_linter_mark_style": "none",
"display_signatures": false,
"disable_anaconda_completion": true,
"python_interpreter": "/usr/local/bin/python3"
}
}
Docker换源
1.阿里加速器(需要注册开发者账号)
阿里云 | 容器镜像服务
2.网易163镜像
http://hub-mirror.c.163.com
3.使用
- 右键点击
菜单栏
的 docker 图标,选择Preferences
- 在
Daemon
标签(Docker 17.03 之前版本为 Advanced 标签)下的Registry mirrors
列表中将你的加速镜像地址添加加到registry-mirrors
的数组里(加速顺序按下表计算) - 点击
Apply & Restart
按钮
Docker 国内镜像库加速 - 简书
国内 docker 仓库镜像对比
Alfred
-
Web Search
-
Workflow
Alfred-Workflow的网站
alfred-workflows
Home | Packal
Alfred 2 Workflow List | Search, Install and Share
常用快捷键
系统通用
- 关闭应用:⌘ + Q
- 关闭窗户:⌘ + W
- 行首/行尾:⌃ + A/E 或 ⌘ + ←/→
- 移动桌面:⌃ + ←/→
- 顶部/底部:⌘ + ↑/↓
- 翻页:fn + ↑/↓ 或 space /shift + space(网页中)
iTerm
- 清除当前行:Ctrl + U
- 搜索命令历史:Ctrl + R
- 清除光标之后的字符:Ctrl + K
- 清除缓存:Command + K
- 垂直分屏: command + d
- 水平分屏 :command + shift + d
- 切换屏幕:command + option + 方向键 或 command +[\]
- 切换标签:command + 数字
- 切换全屏:command + enter