【发布时间】:2011-12-07 23:47:39
【问题描述】:
我正在尝试通过修改它的 plist 来修改我的 Textmate 设置。到目前为止,这是我所得到的:
defaults write com.macromates.textmate OakShellVariables -array-add '{value = "hello"; variable = "TM_HELLO";}'
这将为 Textmate 添加一个新的 shell 变量。我想通过命令行执行此操作,以便我可以编写脚本。以上工作正常,但我也想将启用的键(这是一个布尔值)设置为 true。不幸的是,我似乎无法找出正确的语法来实现这一点。我所有的尝试都导致将启用的密钥设置为字符串而不是布尔值。例如:
defaults write com.macromates.textmate OakShellVariables -array-add '{enabled = true ;value = "hello"; variable = "TM_HELLO";}
【问题讨论】: