mac(4) : 删除系统自带输入法

参考 : https://www.cjahv.com/mac-delete-default-input-model.html

注: 该方法亲测适用于版本

        Mac OS 10.14 (18A391) 

        macOS Big Sur 11.5.1 (20G80)

操作步骤

1.系统偏好,输入法设置,把非ABC输入法全部删除

2.打开终端

3. 备份文件,防止出现未知错误可以恢复

cp ~/Library/Preferences/com.apple.HIToolbox.plist ~/Library/Preferences/com.apple.HIToolbox.plist.back

4.将其转换成xml文件

plutil -convert xml1 ~/Library/Preferences/com.apple.HIToolbox.plist

5.用vi命令编辑该文件

vi ~/Library/Preferences/com.apple.HIToolbox.plist

6.执行上条命令文件内容如下

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>AppleCurrentKeyboardLayoutInputSourceID</key>
  <string>com.apple.keylayout.ABC</string>
  <key>AppleEnabledInputSources</key>
  <array>
    <dict>
      <key>Bundle ID</key>
      <string>com.apple.inputmethod.SCIM</string>
      <key>Input Mode</key>
      <string>com.apple.inputmethod.SCIM.ITABC</string>
      <key>InputSourceKind</key>
      <string>Input Mode</string>
    </dict>
    <dict>
      <key>Bundle ID</key>
      <string>com.apple.PressAndHold</string>
      <key>InputSourceKind</key>
      <string>Non Keyboard Input Method</string>
    </dict>
    <dict>
      <key>InputSourceKind</key>
      <string>Keyboard Layout</string>
      <key>KeyboardLayout ID</key>
      <integer>252</integer>
      <key>KeyboardLayout Name</key>
      <string>ABC</string>
    </dict>
  </array>
  <key>AppleGlobalTextInputProperties</key>
  <dict>
    <key>TextInputGlobalPropertyPerContextInput</key>
    <true/>
  </dict>
  <key>AppleHandwritingDisabledInputSources</key>
  <array>
    <string>com.apple.inputmethod.SCIM</string>
  </array>
  <key>AppleInputSourceHistory</key>
  <array>
    <dict>
      <key>InputSourceKind</key>
      <string>Keyboard Layout</string>
      <key>KeyboardLayout ID</key>
      <integer>252</integer>
      <key>KeyboardLayout Name</key>
      <string>ABC</string>
    </dict>
    <dict>
      <key>Bundle ID</key>
      <string>com.sogou.inputmethod.sogou</string>
      <key>Input Mode</key>
      <string>com.sogou.inputmethod.pinyin</string>
      <key>InputSourceKind</key>
      <string>Input Mode</string>
    </dict>
  </array>
  <key>AppleSelectedInputSources</key>
  <array>
    <dict>
      <key>Bundle ID</key>
      <string>com.apple.PressAndHold</string>
      <key>InputSourceKind</key>
      <string>Non Keyboard Input Method</string>
    </dict>
    <dict>
      <key>InputSourceKind</key>
      <string>Keyboard Layout</string>
      <key>KeyboardLayout ID</key>
      <integer>252</integer>
      <key>KeyboardLayout Name</key>
      <string>ABC</string>
    </dict>
  </array>
</dict>
</plist>

7.把 <key>AppleEnabledInputSources</key> 和<key>AppleInputSourceHistory<key>下含所有含有ABC的 <dict></dict> 删除,如上就是删除23-30行

用方向键把移动到如上23行所在,双击d键,删除该行,一直删除包含ABC的dict,然后输入 :wq ,保存

8.重启,需要输入登录密码

sudo reboot

END。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值