Set correct PDIR location in zshenv

This commit is contained in:
Jean Mertz 2012-08-10 07:42:01 +02:00
parent f9df5c6ba4
commit 98fb67a086

View File

@ -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