如何导出iTerm2配置文件 [英] How to export iTerm2 Profiles
问题描述
我需要重新格式化计算机,现在无法复制设置/配置文件.
I needed to reformat my computer and now I'm having trouble copying the settings/profiles over.
我将文件复制到~/Library/Application\ Support/iTerm/
我也复制了~/Library/Preferences/com.googlecode.iterm2.plist
,但它一直给我这个错误:
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.
位置在这里:
iTerm▶常规▶首选项▶将设置保存到文件夹
iTerm ▶ General ▶ Preferences ▶ Save Settings To Folder
这是输出:
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▶首选项▶配置文件▶颜色▶加载预设▶导出
iTerm ▶ Preferences ▶ Profiles ▶ Colors ▶ Load Presets ▶ Export
有人知道如何使它正常工作吗?
Does anyone know how to get this to work?
推荐答案
如果您查看Preferences -> General
,则会在面板底部看到一个设置Load preferences from a custom folder or URL:
. Save settings to Folder
旁边是一个按钮.
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.
如果禁用了Save settings to Folder
,请在Load preferences from a custom folder or URL:
文本框中选择一个文件夹(例如,空).
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.
在OSX的iTerm2 3.3中,顺序为:iTerm2菜单,首选项",常规"选项卡,首选项"子选项卡
In iTerm2 3.3 on OSX the sequence is: iTerm2 menu, Preferences, General tab, Preferences subtab
这篇关于如何导出iTerm2配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!