31

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)

Community
  • 1
  • 1
Stew
  • 4,495
  • 6
  • 31
  • 41

5 Answers5

29

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.

David Resnick
  • 4,891
  • 5
  • 38
  • 42
Evstrat
  • 307
  • 3
  • 3
12
  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

Dean Jain
  • 1,959
  • 19
  • 15
  • 2
    Thank you, it worked. But after all this, when I changed something in the loaded dynamic profile, the change is lost when I reload iTerm. The solution was to duplicate the loaded dynamic profile in `Preferences > Profiles` and set that one as default. – Rodrigo Pinto Jul 12 '19 at 13:42
  • Step 2 is described confusingly. Are you saying that, to import iTerm2 profiles from JSON, one should save the json as a file located at `~/Library/Application Support/iTerm2/DynamicProfiles/itermprofiles.json`? – Tom Jul 10 '20 at 23:28
8

Here's how I import iTerm (iTerm2) JSON Profile files

Open iTerm and Select Profiles from menu enter image description here

Select Edit Profiles button
enter image description here

Select Other Actions... button.
Then select "Import JSON Profiles...'
And then navigate Finder and select the profile you want to import enter image description here

Mike Barlow - BarDev
  • 11,087
  • 17
  • 62
  • 83
0

I have a simple utility that creates iTerm2 json profiles from list of servers here : iTerm2profiles

dev.sead
  • 81
  • 5
0

Just export the JSON file for all the profiles and then Import as shown above the page. This works fine for me. It saves a lot of time, as I've many profiles for web servers.

Athar
  • 579
  • 5
  • 12