Fix for iTerm themes install on Mavericks

Mavericks cache preferences and overwrites defaults from cache, not
installing it properly. Reading it after install updates the cache with
new values.
This commit is contained in:
Ricardo Giorni 2014-06-10 12:44:38 -03:00
parent dab810e27b
commit 9de2400e30

View File

@ -346,6 +346,7 @@ def apply_theme_to_iterm_profile_idx(index, color_scheme_path)
values.flatten.each { |entry| run %{ /usr/libexec/PlistBuddy -c "Delete :'New Bookmarks':#{index}:'#{entry}'" ~/Library/Preferences/com.googlecode.iterm2.plist } }
run %{ /usr/libexec/PlistBuddy -c "Merge '#{color_scheme_path}' :'New Bookmarks':#{index}" ~/Library/Preferences/com.googlecode.iterm2.plist }
run %{ defaults read com.googlecode.iterm2 }
end
def success_msg(action)