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:
parent
9b365c6251
commit
739a7ac7c1
4
Rakefile
4
Rakefile
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user