Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I import an iTerm2 profile?

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)

like image 273
Stew Avatar asked Feb 04 '16 21:02

Stew


People also ask

Where are iTerm2 profiles?

iTerm stores profiles in `~/Library/Saved Application State` which is not backed up by time machine. Today I had to recover my main disk form time mashine. For some reason, iTerm2 lost all my profiles. Some research revealed that profiles are stored in ~/Library/Saved Application State .

How do I save my iTerm2 profile?

Go to iTerm2 -> Preferences -> General . Under the Preferences tab , Tick Load Preferences from a custom folder or a URL: and choose a folder and click on Save Now .


2 Answers

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.

like image 91
Evstrat Avatar answered Sep 22 '22 17:09

Evstrat


  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

like image 45
Dean Jain Avatar answered Sep 18 '22 17:09

Dean Jain