作者归档:Neo

macOS 原生输入法设置双拼自然码

注:从 macOS Ventura 开始,在输入法设置中,“常用”双拼布局即为自然码,无需以下设置。

用了 macOS 一段时间了,一直使用的是搜狗输入法,因为系统自带的双拼输入法不支持自然码。

不过最近在网上看相关的双拼练习时,发现原来用过的双拼练习的作者 @BlueSky 给出了提示,macOS 其实内置了隐藏的双拼自然码方案。

只需在终端内输入以下命令即可:

defaults write com.apple.inputmethod.CoreChineseEngineFramework shuangpinLayout 5

在输入法偏好设置中会看到这样的效果:

此时即可使用自然码方案了。

使用 GPG 签名你的 Commits

准备工作

首先要安装好 GPG 工具。

brew install gnupg gnupg2 pinentry-mac

配置使用环境。

test -r ~/.bash_profile && echo 'export GPG_TTY=$(tty)' >> ~/.bash_profile
echo 'export GPG_TTY=$(tty)' >> ~/.profile

mkdir ~/.gnupg
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf

killall gpg-agent

继续阅读