Ship custom zpreztorc with syntax highlight, history substring search [Fix #191]
This commit is contained in:
13
Rakefile
13
Rakefile
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user