本文主要记录Mac开发环境的设置,以及一些优秀软件,使用技巧,等, 后续还会继续逐渐添加.
所有的设置,软件以及技巧都追求 在极致简洁和极致效率, 最大可能提升工具效率,以提升生产力.
主要作为个人笔记性质,故有些细节略去.如有不解,欢迎留言.
如有推荐 or 其他软件问题,欢迎留言探讨.
OS X 系统设置
- 触摸板
- Trackpad:
System Preferences
->Trackpad
-
Point & Click
->Tap to click
. -
Point & Click
->Look up & data detectors
->Tap with three fingers
- Trackpad:
- 键盘:
System Preferences
->Keyboard
- 把 F1-F12 改成标准功能键:
Use all F1, F2, etc. keys as standard function keys
. -
Shortcuts
->All controls
.
- 把 F1-F12 改成标准功能键:
- Dock:
System Preference
->Dock
- 移除不常用的APP
- 移动到左侧:
Position on screen
:left
- 不重复显示已打开应用:
Minimize windows into application icon
-
Finder
->Preference
->`General-
Show these items on the desktop
-> 仅保留External disks
-
New Finder windows show
->user name
-
Tags
全部移除 -
SideBar
仅保留必须
-
- 取消自动更新:
App Store
->Preference
->Automatically check for updates
-
Dictionary -> Preferences
, 添加牛津英汉汉英词典
现代汉语规范词典
. - 菜单上显示音量控制图标:
System Preference
->Sound
->Show volume in menu bar
- 菜单上显示蓝牙图标:
System Preference
->BlueTooth
->Show BlueTooth in menu bar
- 移除Guest用户:
System Preference
->Users&Groups
->Guest User
->Allow guests to log in this computer
- 输入法快捷键:
Keyboard
->Shortcuts
->Input Sources/Spotlight
. - 输入法设置,中文下使用英文符号.
开发工具
- Homebrew, 期间会自动安装
Command Line Tools
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor //验证安装正确 // 以下为常用命令 brew install [package] //安装包 brew uninstall [package] //卸载包 brew outdated //列出过时的软件 brew upgrade //更新过时的软件(全部或指定) brew update //升级homebrew在服务器端上的包目录 brew list //列出所有安装的包 brew clean up //清理旧版本缓存 brew info //安装包信息检索
- Homebrew Cask
brew install caskroom/cask/brew-cask
- iterm2
brew cask install iterm2
Config:
-
Preference
->Profiles
->Duplicate Profile
->set as default
-
Window
->Transparency / Blur
-
-
Oh My Zsh
brew install wget wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - |sh
推荐插件
plugins=(git textmate ruby autojump osx mvn gradle)
- autojump // todo 此处后续展开插件安装使用.
- nvm: NodeJS包管理工具
- jupter: 写作式编程
-
vs code: 文本编辑器,不喜欢IDE的推荐使用,巨硬出品,好评!
推荐插件: vscode-icon, project-manager
推荐主题: Ocean One Dark - WebStorm : FE们最爱的IDE, 推荐grey_orange主题
- Dash: Mac专属文档查询工具.
常用软件
- 浏览器: 日常上网灌水用Safari,占用内存小&省电; 干活用chrome.
- sizeup: 窗口管理, 多/大显示器尤其实用.
- IINA : 多媒体播放,mpv内核,开源软件,快速迭代中,强推.
- Transmission: BT下载.
- The Unarchiver: 解压缩
- HandShaker : 情怀工匠精神锤出品,mac上管理安卓手机文件一把好手.
- Typora : MarkDown写作.Mac上面写作markdown的工具很多,此前一直使用网易云笔记的Markdown功能.客观说做的不错,加上同步很方便.这里郑重推荐Typora,win/Linux/Mac三平台通用,当前处于beta阶段,免费.
- Welly: 论坛灌水, 北邮人 && 水木网友你们懂的.
brew cask install welly
- 阅读: ClearView,略贵,但完美支持mobi,epub,pdf.
其他日常使用技巧
- 生成ssh key, 并上传至Github/ 其他托管平台
生成ssh key: (此处以github为例,其他平台类似)ssh-keygen -t rsa -C "xxxxx@xxxxx.com" # Generating public/private rsa key pair... # 三次回车即可生成 ssh key
查看你的public key,并把他添加到 Github
cat ~/.ssh/id_rsa.pub # ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....
校验登录:
ssh -T git@github.com # Attempts to ssh to GitHub # 输入 yes # Hi username! You've successfully authenticated, but GitHub does not provide shell access.
- 清除软件卸载残留
// Mac完全卸载软件 ~/Library/Application Support/(应用程序名称) ~/Library/Preferences/(应用程序名称) ~/Library/Caches/(应用程序名称)
- 翻墙:下载可用hosts 替换
/etc/hosts
参考:
- http://blog.jobbole.com/63130/
- http://macshuo.com/?p=676
- https://help.github.com/articles/connecting-to-github-with-ssh/