Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export iTerm2 Profiles

Tags:

iterm

iterm2

I needed to reformat my computer and now I'm having trouble copying the settings/profiles over.

I copied the files in ~/Library/Application\ Support/iTerm/

I also copied ~/Library/Preferences/com.googlecode.iterm2.plist but it keeps giving me this error:

Failed to load preferences from custom directory. Falling back to local copy.  Missing or malformed file at "/ com.googlecode.iterm2.plist" 

I also tried saving the profile in a directory so I could send it but it doesn't work.

Here's the location:

iTerm ▶ General ▶ Preferences ▶ Save Settings To Folder

and here's the output:

Failed to copy preferences to custom directory. Copy      /Users/alexcory/Library/Preferences/com.googlecode.iterm2.plist  to Alex_Corys_iTerm_Configuration/com.googlecode.iterm2.plist:  No such process 

The colors work, (found in the path below) but I'm not simply trying to save colors, but rather all my preferences.

iTerm ▶ Preferences ▶ Profiles ▶ Colors ▶ Load Presets ▶ Export

Does anyone know how to get this to work?

like image 639
Alex Cory Avatar asked Apr 08 '14 17:04

Alex Cory


People also ask

How do I save an 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 .

Where are iTerm2 profiles stored?

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 iTerm settings?

If you have a look at Preferences -> General you will notice at the bottom of the panel, there is a setting Load preferences from a custom folder or URL: . There is a button next to it Save settings to Folder .


2 Answers

If you have a look at Preferences -> General you will notice at the bottom of the panel, there is a setting Load preferences from a custom folder or URL:. There is a button next to it Save settings to Folder.

So all you need to do is save your settings first and load it after you reinstalled your OS.

If the Save settings to Folder is disabled, select a folder (e.g. empty) in the Load preferences from a custom folder or URL: text box.

In iTerm2 3.3 on OSX the sequence is: iTerm2 menu, Preferences, General tab, Preferences subtab

like image 123
Ask and Learn Avatar answered Sep 18 '22 07:09

Ask and Learn


It isn't the most obvious workflow. You first have to click "Load preferences from a custom folder or URL". Select the folder you want them saved in; I keep an appsync folder in Dropbox for these sorts of things. Once you have selected the folder, you can click "Save settings to Folder". On a new machine / fresh install of your OS, you can now load these settings from the folder. At first I was sure that loading preferences would wipe out my previous settings, but it didn't.

like image 41
milsyobtaf Avatar answered Sep 21 '22 07:09

milsyobtaf