Contents

iterm2 批量修改 profiles

Contents

https://statics.lshell.com/logo/iterm2-logo.jpg

mac 下, 作为运维,使用频率最高的除了浏览器,就是 iTerm2 了;有时候想更换个主题啥的,以前 Profile 少,一直手动修改,后面增加到上百个 Profile, 查了一下怎么批量修改;记录一下。

原来 iterm2 支持批量修改 Profiles,只不过这个功能比较难找到,叫 Bulk copy from Selected Profile
具体操作步骤如下:

  1. 进入 iTerm2 的 Preferences
  2. Profiles 随便选一个 Profile 修改,然后选中它
  3. 点击 Profile 左下角的 Other Actions
  4. 选中弹出的 Bulk copy from Selected Profile
  5. 在新窗口中的第二行复选框 勾选你要复制的配置,例如:Colors
  6. 在下方选中要批量修改的 Profiles(全选:⌘+A) 点击 copy 即可。

https://statics.lshell.com/20191210/Bulk-copy-from-Selected-Profile.png

参考链接:https://lizhecao.github.io/2018/11/27/zsh-%E6%89%B9%E9%87%8F%E4%BF%AE%E6%94%B9profiles/