Merge pull request #532 from ianks/solarized-choice

Allow user to not use solarized
This commit is contained in:
Yan Pritzker 2014-09-28 06:46:30 -05:00
commit 8ab15c26a0

View File

@ -207,6 +207,9 @@ def install_term_theme
# Ask the user which theme he wants to install # Ask the user which theme he wants to install
message = "Which theme would you like to apply to your iTerm2 profile?" message = "Which theme would you like to apply to your iTerm2 profile?"
color_scheme = ask message, iTerm_available_themes color_scheme = ask message, iTerm_available_themes
return if color_scheme == 'None'
color_scheme_file = File.join('iTerm2', "#{color_scheme}.itermcolors") color_scheme_file = File.join('iTerm2', "#{color_scheme}.itermcolors")
# Ask the user on which profile he wants to install the theme # Ask the user on which profile he wants to install the theme
@ -223,7 +226,7 @@ def install_term_theme
end end
def iTerm_available_themes def iTerm_available_themes
Dir['iTerm2/*.itermcolors'].map { |value| File.basename(value, '.itermcolors')} Dir['iTerm2/*.itermcolors'].map { |value| File.basename(value, '.itermcolors')} << 'None'
end end
def iTerm_profile_list def iTerm_profile_list