Always install zshrc; prevents problems if prezto dir exists but zshrc is missing [Fix #452]

This commit is contained in:
Yan Pritzker 2014-03-13 21:30:47 -05:00
parent 742561a67d
commit deedc27c3f

View File

@ -254,12 +254,10 @@ def install_prezto
puts puts
puts "Installing Prezto (ZSH Enhancements)..." puts "Installing Prezto (ZSH Enhancements)..."
unless File.exists?(File.join(ENV['ZDOTDIR'] || ENV['HOME'], ".zprezto")) run %{ ln -nfs "$HOME/.yadr/zsh/prezto" "${ZDOTDIR:-$HOME}/.zprezto" }
run %{ ln -nfs "$HOME/.yadr/zsh/prezto" "${ZDOTDIR:-$HOME}/.zprezto" }
# The prezto runcoms are only going to be installed if zprezto has never been installed # The prezto runcoms are only going to be installed if zprezto has never been installed
file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy) file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy)
end
puts puts
puts "Overriding prezto ~/.zpreztorc with YADR's zpreztorc to enable additional modules..." puts "Overriding prezto ~/.zpreztorc with YADR's zpreztorc to enable additional modules..."