Ship custom zpreztorc with syntax highlight, history substring search [Fix #191]

This commit is contained in:
Yan Pritzker
2012-10-25 09:52:18 -05:00
parent 643ee2d319
commit 59ff83a0a3
6 changed files with 131 additions and 9 deletions

View File

@@ -21,15 +21,19 @@ task :install => [:submodule_init, :submodules] do
file_operation(Dir.glob('vimify/*')) if want_to_install?('vimification of command line tools')
file_operation(Dir.glob('{vim,vimrc}')) if want_to_install?('vim configuration (highly recommended)')
if want_to_install?('zsh enhancements & prezto')
install_prezto
end
Rake::Task["install_prezto"].execute
install_fonts if RUBY_PLATFORM.downcase.include?("darwin")
success_msg("installed")
end
task :install_prezto do
if want_to_install?('zsh enhancements & prezto')
install_prezto
end
end
task :update => [:install] do
#TODO: for now, we do the same as install. But it would be nice
#not to clobber zsh files
@@ -107,6 +111,9 @@ def install_prezto
file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy)
end
puts "Overriding prezto ~/.zpreztorc with YADR's zpreztorc to enable additional modules..."
run %{ ln -nfs "$HOME/.yadr/zsh/prezto-override/zpreztorc" "${ZDOTDIR:-$HOME}/.zpreztorc" }
puts "Creating directories for your customizations"
run %{ mkdir -p $HOME/.zsh.before }
run %{ mkdir -p $HOME/.zsh.after }