1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-03-23 17:19:53 +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" task :install => "install:all"
namespace :install do namespace :install do
def install name, *files def files(name, *files)
desc "installs #{name} configuration" desc "installs #{name} configuration"
task(name) do task(name) do
Dir[*files].collect do |file| Dir[*files].collect do |file|
@ -17,9 +17,9 @@ namespace :install do
task :all => name task :all => name
end end
install :irb, ".irbrc", ".config/irb/*.rb" files :irb, ".irbrc", ".config/irb/*.rb"
install :dot, *%w(.bash_profile .bashrc .gemrc .global_gitignore .gitconfig .ackrc) files :dot, *%w(.bash_profile .bashrc .gemrc .global_gitignore .gitconfig .ackrc .rvmrc)
install :bin, "bin/*" files :bin, "bin/*"
desc "Update all submodules" desc "Update all submodules"
task :submodules do task :submodules do
@ -28,7 +28,7 @@ namespace :install do
desc "installs the custom texmf folder" desc "installs the custom texmf folder"
task :texmf => :submodules do task :texmf => :submodules do
install :texmf_folder, "texmf" files :texmf_folder, "texmf"
Rake::Task[:texmf_folder].invoke Rake::Task[:texmf_folder].invoke
end end