Add solarized themes for iTerm2
Both solarized dark and light are now included in the subdir iTerm2. They are copies from the original repo because it doesn't seem worth to clone a ~10Mb repo just to keep in sync 2 files, considering that solarized hasn't changed much in the past years. The rakefile has been updated to trigger the automatic installation of these two themes only if OS == OSX. The user will still have to set the themes for his/her current profile manually (but that's explained at the end of the installation process).
This commit is contained in:
18
Rakefile
18
Rakefile
@@ -24,6 +24,8 @@ task :install => [:submodule_init, :submodules] do
|
||||
|
||||
install_fonts if RUBY_PLATFORM.downcase.include?("darwin")
|
||||
|
||||
install_term_theme if RUBY_PLATFORM.downcase.include?("darwin")
|
||||
|
||||
success_msg("installed")
|
||||
end
|
||||
|
||||
@@ -107,6 +109,22 @@ def install_fonts
|
||||
puts
|
||||
end
|
||||
|
||||
def install_term_theme
|
||||
puts "======================================================"
|
||||
puts "Installing iTerm2 solarized theme."
|
||||
puts "======================================================"
|
||||
run %{ /usr/libexec/PlistBuddy -c "Add :'Custom Color Presets':'Solarized Light' dict" ~/Library/Preferences/com.googlecode.iterm2.plist }
|
||||
run %{ /usr/libexec/PlistBuddy -c "Merge 'iTerm2/Solarized Light.itermcolors' :'Custom Color Presets':'Solarized Light'" ~/Library/Preferences/com.googlecode.iterm2.plist }
|
||||
run %{ /usr/libexec/PlistBuddy -c "Add :'Custom Color Presets':'Solarized Dark' dict" ~/Library/Preferences/com.googlecode.iterm2.plist }
|
||||
run %{ /usr/libexec/PlistBuddy -c "Merge 'iTerm2/Solarized Dark.itermcolors' :'Custom Color Presets':'Solarized Dark'" ~/Library/Preferences/com.googlecode.iterm2.plist }
|
||||
|
||||
puts "======================================================"
|
||||
puts "To make sure your profile is using the solarized theme"
|
||||
puts "Please check your settings under:"
|
||||
puts "Preferences> Profiles> [your profile]> Colors> Load Preset.."
|
||||
puts "======================================================"
|
||||
end
|
||||
|
||||
def install_prezto
|
||||
puts
|
||||
puts "Installing Prezto (ZSH Enhancements)..."
|
||||
|
||||
Reference in New Issue
Block a user