OS X终端窗口组保存在哪里 [英] Where are OS X Terminal Window Groups saved

查看:101
本文介绍了OS X终端窗口组保存在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以使用Windows>将Windows另存为组...在Windows中将窗口组保存在终端中,如

I know you can save Window Groups in Terminal using Windows > Save Windows as Group…, as explained in Mac OS X / Open terminal with specified windows.

但是,终端将这些状态保存在哪里?我在iMac和MacBook之间切换,并希望以某种方式同步这些设置.我想我可以在设置和Dropbox之间使用反向符号链接,但我需要知道它们的优先位置.

However, where does Terminal save these states? I switch between an iMac and MacBook and want to sync these settings somehow. I'm thinking I could use a reverse symlink between the settings and Dropbox, but I need to know where they are first.

推荐答案

窗口组保存在〜/Library/Preferences/com.apple.Terminal.plist中的plist文件中.您可以使用XCode附带的plist文件编辑器来编辑这些文件(如果您已安装XCode,则从shell中打开"open .apple.Terminal.plist"就足够了.)

Window groups are saved in a plist file at ~/Library/Preferences/com.apple.Terminal.plist. You an edit these using the plist file editor that comes with XCode ('open .apple.Terminal.plist' from a shell is sufficient if you've got XCode installed).

幸运的是,从终端"窗口编辑此文件时,您没有catch 22的麻烦. Terminal不会在退出时自动检查文件,因此您可以编辑文件,退出Terminal,然后重新启动Mac以刷新文件中的数据.

Fortunately you don't have a catch-22 when editing this file from a Terminal window. Terminal doesn't automatically checkpoint the file on exit, so you can edit the file, exit Terminal, then restart your Mac in order to refresh the data from the file.

这篇关于OS X终端窗口组保存在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆