How do I import an iTerm2 profile?

别来无恙 提交于 2020-06-09 11:56:06

问题


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?

(the file I exported was called com.googlecode.iterm2.plist, for what it's worth)


回答1:


just upload your *.plist to ~/Library/Preferences.
Notice, that checkbox:

Load preferences from a custom folder or URL

in Preferences - General (at the bottom) must be disabled.




回答2:


  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



来源:https://stackoverflow.com/questions/35211565/how-do-i-import-an-iterm2-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!