add linux font install
This commit is contained in:
parent
245ca3a2b4
commit
32c099214f
5
Rakefile
5
Rakefile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user