aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 0566c9a186e6284b7bd7eac8a42483120dcad904 (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
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash


# If something goes wrong, get the f*ck out.
set -e

# Install the files on this repo.
cp bashrc $HOME/.bashrc
cp psqlrc $HOME/.psqlrc
cp irbrc $HOME/.irbrc
cp gemrc $HOME/.gemrc
cp gitcompletion.sh $HOME/.gitcompletion.sh
cp gitconfig $HOME/.gitconfig
cp global.gitignore $HOME/.gitignore
cp hgrc $HOME/.hgrc
cp hgcompletion.sh $HOME/.hgcompletion.sh
cp global.hgignore $HOME/.hgignore
cp rake_completion $HOME/.rake_completion
chmod +x $HOME/.rake_completion

# Wipe out the current vim config and replace it with this one.
rm -rf $HOME/.vim
rm -rf $HOME/.vimrc
cp -rf vim $HOME/.vim
cp vimrc $HOME/.vimrc

# Download and install the review utility.
cd /tmp
git clone https://github.com/mssola/review
cd review
perl install.pl
cp misc/review_completion.sh $HOME/.review_completion.sh

# Download and install the g utility
cd /tmp
git clone https://github.com/mssola/g
cd g
cp g.sh $HOME/.g.sh
cp gcompletion.sh $HOME/.gcompletion.sh