Mac mini 环境搭建
dong4j 11/11/2018
macOS
记录 mac mini 开发环境的搭建过程
系统设置
修改 Launchpad 图标大小
行:
defaults write com.apple.dock.springboard-rows -int 7
列:
defaults write com.apple.dock.springboard-columns -int 9
重启 dock
恢复:
defaults write com.apple.dock.springboard-rows default
defaults write com.apple.dock.springboard-columns default
killall dock
defaults write com.apple.dock springboard-columns -int 11;defaults write com.apple.dock springboard-rows -int 7;defaults write com.apple.dock ResetLaunchPad -bool TRUE;killall Dock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
xxx.app已损坏,打不开.你应该将它移到废纸篓
sudo spctl --master-disable
1
Mac 三指拖动设置
- 找到系统偏好设置 中的辅助功能
- 选中鼠标和控制板 -> 触控板选项
- 勾选启用拖移 -> 好
设置以上步骤就可以用三指自由拖动窗口了.
JDK
ssh
brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1
zsh
oh-my-zsh
IDEA
Docker
surge
brew install libfaketime
1
FAKETIME_STOP_AFTER_SECONDS=30 faketime '2007-01-01 00:00:00' /Applications/Surge.app/Contents/MacOS/Surge &
export https_proxy=http://127.0.0.1:6152;export http_proxy=http://127.0.0.1:6152;export all_proxy=socks5://127.0.0.1:6153
1
2
3
2
3
安装 code 命令
在 vscode 下通过快捷键 shift + command + p 运行命令 shell code
安装zsh-syntax-highlighting语法高亮插件
安装zsh-syntax-highlighting语法高亮插件
官网: https://github.com/zsh-users/zsh-syntax-highlighting
安装:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
1
2
2
生效:
source ~/.zshrc
1
安装 Powerlevel9k --- 一个美观而又实用的 ZSH 主题
https://www.jianshu.com/p/f84cf6132d1e
https://mp.weixin.qq.com/s/tWrxxrRyKAGohJfq8LUAGQ
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
1
ZSH_THEME="powerlevel9k/powerlevel9k"
1
安装字体
# clone
git clone https://github.com/powerline/fonts.git
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
导出 iterm 配置
https://www.jianshu.com/p/c251d26374c5
自动提示插件
zsh-autosuggestions