From deedc27c3f08eae6134b273dceb6d48acbc671b0 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Thu, 13 Mar 2014 21:30:47 -0500 Subject: [PATCH] Always install zshrc; prevents problems if prezto dir exists but zshrc is missing [Fix #452] --- Rakefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index d9e4613..6abbc5a 100644 --- a/Rakefile +++ b/Rakefile @@ -254,12 +254,10 @@ def install_prezto puts 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 - file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy) - end + # The prezto runcoms are only going to be installed if zprezto has never been installed + file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy) puts puts "Overriding prezto ~/.zpreztorc with YADR's zpreztorc to enable additional modules..."