环境配置优化
关闭 SIP,至于是否关闭,暂时先看需求吧
验证
csrutil status
验证待机耗电量的问题。
之前的版本有待机休眠的问题,这次换架构再试试会不会莫名唤醒导致耗电发热。
开启三指拖动。
Karabiner-Elements
映射 hjkl
。This will work but will also ==cause yarn installed with brew to be used no matter what node version is used with nvm.== So if you ever want to use different yarn versions on different projects, this will cause problems.
扩展知识
在
$NVM_DIR/default-packages
写入默认安装的软件包, 这样 nvm
在安装新的版本节点的时候,会自动安装指定的软件包。@vue/cli create-react-app yarn
稿定
NodeJS
版本为 10.x,配置为本环境的默认 NodeJS
版本;- 解决 "can’t be opened because Apple cannot check it for malicious software.
If you drag it to your /Applications folder, then right-click and press 'Open', a pop-up will appear, click 'open' again. That worked for me when downloading an app that had this issue.
- Charles 网络调试工具
经过
Rosetta2
加持的 Charles
,会卡顿且容易崩溃。- 安装 Paw 接口请求调试工具
因为黑五作者在Twitter上送了一个邀请码,使用起来还不错。
代替品
Postman
- 安装 oh-my-zsh
- 安装 oh-my-tmux
- 安装 spf13-vim
个人使用
vim
的场景是用来「简单地」阅读源码,并不作为主力编辑器(虽然曾经做过这种事情),所以直接用一条龙服务就好了- 安装 fzf
使用 fzf 加持
CTRL-T preview file
CTRL-R search command line history
# FZF Stuff export FZF_DEFAULT_COMMAND='ag -g ""' # `highlight` preview options # WARNING: depends on `brew install highlight` export FZF_HIGHLIGHT_PREVIEW_OPTS="--height 100% --preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null' --preview-window=up:40%" # When pressing CTRL-T, only search file names (not directories) # and display highlighted source in preview window export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_OPTS="--delimiter '/' --nth=-1 $FZF_HIGHLIGHT_PREVIEW_OPTS"
使用 Alfred 代替 spotlight 服务
可否禁用 spotlight 索引达到节约系统资源的目的
哦不行,Alfred 用的是 spotlight 建的索引 → https://www.alfredapp.com/help/troubleshooting/indexing/spotlight/