Allow user to not use solarized
This commit is contained in:
parent
755f70a66b
commit
bcc5245826
5
Rakefile
5
Rakefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user