aboutsummaryrefslogtreecommitdiff
path: root/install.rb
blob: 1cb8a609d333ea2ae901f9b53db44ba233b4c6ad (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
##
# 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`