Set correct PDIR location in zshenv
This commit is contained in:
parent
f9df5c6ba4
commit
98fb67a086
6
Rakefile
6
Rakefile
@ -84,6 +84,12 @@ def file_operation(files, method = :symlink)
|
|||||||
f.write('for config_file (~/.yadr/zsh/*.zsh) source $config_file')
|
f.write('for config_file (~/.yadr/zsh/*.zsh) source $config_file')
|
||||||
end
|
end
|
||||||
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user