Mac配置

配置ssh

1
ssh-keygen -t ed25519 -C "shichenegyx@sina.com"

配置Mac 触控板

1 光标与点按:开启轻点来点按
2 滚动缩放:关闭自然滚动

配置Mac 桌面与程序坞

1 打开将窗口最小化至应用程序图标

配置Mac外接键盘Home/End键改为跳行首/行尾

1 创建默认的按键映射文件

1
2
mkdir -p ~/Library/KeyBindings
vim ~/Library/KeyBindings/DefaultKeyBinding.dict

2 写入映射内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
/* Remap Home/End keys */
/* Home Button*/
"\UF729" = "moveToBeginningOfLine:";
/* End Button */
"\UF72B" = "moveToEndOfLine:";
/* Shift + Home Button */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* Shift + End Button */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* Ctrl + Home Button */
"^\UF729" = "moveToBeginningOfDocument:";
/* Ctrl + End Button */
"^\UF72B" = "moveToEndOfDocument:";
/* Shift + Ctrl + Home Button */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
/* Shift + Ctrl + End Button*/
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
}

3 重启电脑后生效

配置Snipaste

1 常规:启用“开启启动”
2 输出:配置路径:/Users/wangqiwei/Pictures/Snapshot/Snipaste_$yyyy-MM-dd_HH-mm-ss$.png
3 控制:只设置截屏Ctrl + A

配置访达

1 标签栏:去除所有标签
2 边栏:显示图片,{HOME}

配置stats

1 只保留CPU、MEM、网络
2 网络|小组件:标识改为箭头
3 打开合并模块,关闭合并详情

配置iTerm2 + zsh + oh my zsh

1 配置iTerm2: Profiles|Colors,Default背景色设置为黑色,前景色设置为白色。Cursor背景色设置为白色,前景色设置为黑色。
2 配置zsh:~/.zshrc,末尾增加

1
source ~/.zshrc_user

3 配置oh my zsh,安装插件

1
2
3
4
5
6
7
8
9
10
11
brew install zsh-syntax-highlighting
echo "source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc_user
source ~/.zshrc

brew install zsh-autosuggestions
echo "source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc_user
source ~/.zshrc

brew install autojump
echo "[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh" >> ~/.zshrc_user
source ~/.zshrc

配置go2shell

配置terminal为iTerm2

评论