Change the Iterm2 parameters by default OSX command

I am trying to do the following

disable Iterm2 parameters, such as "Draw bold font" from the COMMAND line, I know that it is easy to disable it with a few clicks, because I use Boxen to configure my Mac, I just want to be able to get some kind of application parameters are also sorted .

I run the following command to check the settings first

defaults read com.googlecode.iterm2 | grep -i bold

he returns

"Bold Color" =             {
        "Use Bold Font" = 1;
        "Use Bright Bold" = 1;

This looks good, and when I try to change it, the following command does not work, it created another key.

defaults write com.googlecode.iterm2 '{ "Use Bold Font" = 0;}'

defaults read com.googlecode.iterm2 | grep -i bold
        "Bold Color" =             {
        "Use Bold Font" = 1;
        "Use Bright Bold" = 1;
"Use Bold Font" = 0;

It looks like "Use selected font", is a unit or one level in depth, I'm not sure how to change it.

any suggestions?

+4
1

- , , .

" " , plistbuddy ,

[admin@mb-125:~] : /usr/libexec/PlistBuddy -c 'Print :"New Bookmarks":0:"Use Bold Font"' ~/Library/Preferences/com.googlecode.iterm2.plist
true

[admin@mb-125:~] : /usr/libexec/PlistBuddy -c 'Set :"New Bookmarks":0:"Use Bold Font" false' ~/Library/Preferences/com.googlecode.iterm2.plist

[admin@mb-125:~] : /usr/libexec/PlistBuddy -c 'Print :"New Bookmarks":0:"Use Bold Font"' ~/Library/Preferences/com.googlecode.iterm2.plist
false

, .

+7

All Articles