1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Allow .dotfile suffix to prevent local evaluation

This commit is contained in:
Holger Just 2014-05-14 16:09:19 +02:00
parent 9b365c6251
commit 739a7ac7c1
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ namespace :install do
desc "installs #{name} configuration"
task(name) do
Dir[*files].collect do |file|
full = File.join File.dirname(__FILE__), file
full = File.join File.dirname(__FILE__), File.basename(file, '.dotfile')
Dir.chdir ENV["HOME"] do
mkdir_p File.dirname(file)
File.delete(file) if (File.exist? file and File.directory? full)
@ -20,7 +20,7 @@ namespace :install do
end
files :irb, ".irbrc", ".config/irb/*.rb"
files :dot, *%w(.bash_profile .bashrc .gemrc .gitignore_global .gitconfig .ackrc .rvmrc)
files :dot, *%w(.bash_profile .bashrc .gemrc .gitignore_global .gitconfig .ackrc .rvmrc.dotfile)
files :bin, "bin/*"
desc "Update all submodules"