From 9de2400e3023259f8f2926a9de7f0eae9215ee96 Mon Sep 17 00:00:00 2001 From: Ricardo Giorni Date: Tue, 10 Jun 2014 12:44:38 -0300 Subject: [PATCH] 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. --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index 6abbc5a..66b0d2f 100644 --- a/Rakefile +++ b/Rakefile @@ -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)