blob: e705a576e86c37cd3e30650c1a986fa712a21346 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
##
# Simple script to install all the files to our home
#
#!/usr/bin/env ruby
# Check for the wirble gem since the .irbrc file requires
# this gem to successfully work.
begin
require 'wirble'
rescue LoadError
puts 'The .irbrc file requires wirble and you haven\'t this gem installed!'
end
# You can change your home directory ;)
home = ARGV[0]
home ||= '$HOME'
`cp bashrc #{home}/.bashrc`
`cp irbrc #{home}/.irbrc`
`cp gemrc #{home}/.gemrc`
`cp gitcompletion #{home}/.gitcompletion.sh`
`cp gitconfig #{home}/.gitconfig`
`cp global.gitignore #{home}/.gitignore`
`cp vimrc #{home}/.vimrc`
`cp hgrc #{home}/.hgrc`
`cp rake_completion #{home}/.rake_completion`
`chmod +x #{home}/.rake_completion`
|