不能导入Iterm2的配色方案?

时间:2022-11-06 17:24:10

I'm new to Mac OS X and installed the iterm2 , But I can not import the color scheme which downloaded from github,the error message poped up like this:

我是Mac OS X的新手,安装了iterm2,但是我不能导入从github下载的颜色方案,错误消息是这样弹出的:

The selected file could not be read or did not contain a valid color scheme.

所选文件不能读取或不包含有效的配色方案。

I'm pretty sure that I've downloaded the right file,so I really don't understand what happend.

我很确定我下载了正确的文件,所以我真的不知道发生了什么。

2 个解决方案

#1


1  

I fixed this by open and check the downloaded .itemcolors file and find that it is not in the right format. I did this to fix it:

我通过打开和检查下载的.itemcolors文件来修复它,并发现它的格式不正确。我这样做是为了修复它:

1.export the current:

Command+i -> switch to Color -> Load Resets -> Export

命令+i ->切换到颜色->负载重置->输出。

2.modify the exported file:

open it in text editor, and then goto this repo in github, pick what you like according to this. Remeber, just replace what inside the outtest not the whole file. Save it.

在文本编辑器中打开它,然后在github中的这个repo,根据这个选择你喜欢的。记住,只是把里面的东西替换掉,而不是整个文件。保存它。

3.import the file you just saved.

Command+i -> switch to Color -> Load Resets -> Import chose the file you saved, and that's all

命令+i ->切换到颜色->负载重置->导入选择您保存的文件,这就是全部。

Hope this can help you.

希望这能帮到你。

#2


0  

shellbye's solution works for me. In addition, if you'd like to persist the color scheme out of this particular session, you may want to go to Preference->Profile and set the color scheme over there.

shellbye的解决方案对我有效。另外,如果您想要在这个特定的会话中持久化颜色方案,您可能想要选择->配置文件并在那里设置配色方案。

#1


1  

I fixed this by open and check the downloaded .itemcolors file and find that it is not in the right format. I did this to fix it:

我通过打开和检查下载的.itemcolors文件来修复它,并发现它的格式不正确。我这样做是为了修复它:

1.export the current:

Command+i -> switch to Color -> Load Resets -> Export

命令+i ->切换到颜色->负载重置->输出。

2.modify the exported file:

open it in text editor, and then goto this repo in github, pick what you like according to this. Remeber, just replace what inside the outtest not the whole file. Save it.

在文本编辑器中打开它,然后在github中的这个repo,根据这个选择你喜欢的。记住,只是把里面的东西替换掉,而不是整个文件。保存它。

3.import the file you just saved.

Command+i -> switch to Color -> Load Resets -> Import chose the file you saved, and that's all

命令+i ->切换到颜色->负载重置->导入选择您保存的文件,这就是全部。

Hope this can help you.

希望这能帮到你。

#2


0  

shellbye's solution works for me. In addition, if you'd like to persist the color scheme out of this particular session, you may want to go to Preference->Profile and set the color scheme over there.

shellbye的解决方案对我有效。另外,如果您想要在这个特定的会话中持久化颜色方案,您可能想要选择->配置文件并在那里设置配色方案。