From 98fb67a086e51ad09b2b23870d1d985c498ff4e2 Mon Sep 17 00:00:00 2001 From: Jean Mertz Date: Fri, 10 Aug 2012 07:42:01 +0200 Subject: [PATCH] Set correct PDIR location in zshenv --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rakefile b/Rakefile index 722c3788..7391896e 100644 --- a/Rakefile +++ b/Rakefile @@ -84,6 +84,12 @@ def file_operation(files, method = :symlink) f.write('for config_file (~/.yadr/zsh/*.zsh) source $config_file') end end + + if file == 'zshenv' + text = File.read(target) + text.gsub!('export PDIR="$ZDOTDIR/.zsh.d"', 'export PDIR="$HOME/.yadr/zsh/prezto"') + File.open(target, 'w') { |f| f.puts text } + end end end