From 72446c046aa091af304fcdfba27ad348b37119e0 Mon Sep 17 00:00:00 2001 From: Nanda Lopes Date: Sun, 8 Nov 2020 21:06:34 -0300 Subject: [PATCH] Remove zshrc post-install inserts --- Rakefile | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Rakefile b/Rakefile index bbcc3e07..ff48648a 100644 --- a/Rakefile +++ b/Rakefile @@ -321,18 +321,6 @@ def install_files(files, method = :symlink) run %{ cp -f "#{source}" "#{target}" } end - # Temporary solution until we find a way to allow customization - # This modifies zshrc to load all of yadr's zsh extensions. - # Eventually yadr's zsh extensions should be ported to prezto modules. - source_config_code = "for config_file ($HOME/.yadr/zsh/*.zsh) source $config_file" - if file == 'zshrc' - File.open(target, 'a+') do |zshrc| - if zshrc.readlines.grep(/#{Regexp.escape(source_config_code)}/).empty? - zshrc.puts(source_config_code) - end - end - end - puts "==========================================================" puts end