add linux font install

This commit is contained in:
Alex Frost 2014-07-17 08:11:56 +01:00
parent 245ca3a2b4
commit 32c099214f

View File

@ -27,7 +27,7 @@ task :install => [:submodule_init, :submodules] do
Rake::Task["install_prezto"].execute
install_fonts if RUBY_PLATFORM.downcase.include?("darwin")
install_fonts
install_term_theme if RUBY_PLATFORM.downcase.include?("darwin")
@ -181,7 +181,8 @@ def install_fonts
puts "======================================================"
puts "Installing patched fonts for Powerline/Lightline."
puts "======================================================"
run %{ cp -f $HOME/.yadr/fonts/* $HOME/Library/Fonts }
run %{ cp -f $HOME/.yadr/fonts/* $HOME/Library/Fonts } if RUBY_PLATFORM.downcase.include?("darwin")
run %{ mkdir -p ~/.fonts && cp ~/.yadr/fonts/* "$_" && fc-cache -vf ~/.fonts } if RUBY_PLATFORM.downcase.include?("linux")
puts
end