How do I import an iTerm2 profile?

前端 未结 2 954
走了就别回头了
走了就别回头了 2021-02-04 02:00

This question helped me with how to export a profile configuration file, but how do I import that file into iterm2 on my new machine?

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 02:34

    1. First export all the profiles from iTerm2 as below:

      • Go to Profiles
      • Open Profiles
      • Edit Profiles
      • Other actions
      • Copy All Profiles as JSON
      • Save it to some place you will remember
    2. How to import from above JSON file format which is actually a plist format:

      • go to your home directory cd ~
      • cd Library/Application Support/iTerm2/DynamicProfiles
      • copy your json file you saves to this DynamicProfiles folder
      • cp {backuppath-where-you-exported-in-step1}/itermprofiles.json .
    3. Restart iTerm2 now in profiles it should show all your old profiles

提交回复
热议问题