系統偏好 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