From bcc5245826d85bf782cd01684d5d949d09c5620d Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Sun, 21 Sep 2014 23:51:58 -0600 Subject: [PATCH] Allow user to not use solarized --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 66b0d2f..434412d 100644 --- a/Rakefile +++ b/Rakefile @@ -207,6 +207,9 @@ def install_term_theme # Ask the user which theme he wants to install message = "Which theme would you like to apply to your iTerm2 profile?" color_scheme = ask message, iTerm_available_themes + + return if color_scheme == 'None' + color_scheme_file = File.join('iTerm2', "#{color_scheme}.itermcolors") # Ask the user on which profile he wants to install the theme @@ -223,7 +226,7 @@ def install_term_theme end def iTerm_available_themes - Dir['iTerm2/*.itermcolors'].map { |value| File.basename(value, '.itermcolors')} + Dir['iTerm2/*.itermcolors'].map { |value| File.basename(value, '.itermcolors')} << 'None' end def iTerm_profile_list