Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
539 views
in Technique[技术] by (71.8m points)

iterm - How to export iTerm2 Profiles

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...