1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-06 00:53:23 +00:00

Auto reload for RVM

This commit is contained in:
Holger Just 2012-10-23 01:33:20 +02:00
parent 02fa1d1803
commit 12cdbb4e73
2 changed files with 6 additions and 5 deletions

1
.rvmrc Normal file
View File

@ -0,0 +1 @@
rvm_auto_reload_flag=1

View File

@ -2,7 +2,7 @@ desc "installs everything"
task :install => "install:all"
namespace :install do
def install name, *files
def files(name, *files)
desc "installs #{name} configuration"
task(name) do
Dir[*files].collect do |file|
@ -17,9 +17,9 @@ namespace :install do
task :all => name
end
install :irb, ".irbrc", ".config/irb/*.rb"
install :dot, *%w(.bash_profile .bashrc .gemrc .global_gitignore .gitconfig .ackrc)
install :bin, "bin/*"
files :irb, ".irbrc", ".config/irb/*.rb"
files :dot, *%w(.bash_profile .bashrc .gemrc .global_gitignore .gitconfig .ackrc .rvmrc)
files :bin, "bin/*"
desc "Update all submodules"
task :submodules do
@ -28,7 +28,7 @@ namespace :install do
desc "installs the custom texmf folder"
task :texmf => :submodules do
install :texmf_folder, "texmf"
files :texmf_folder, "texmf"
Rake::Task[:texmf_folder].invoke
end