forked from oalders/dot-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
39 lines (28 loc) · 989 Bytes
/
install.sh
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
#!/usr/bin/env bash
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
echo $SELF_PATH
ln -sf $SELF_PATH/ackrc ~/.ackrc
ln -sf $SELF_PATH/bashrc ~/.bashrc
cp $SELF_PATH/dataprinter ~/.dataprinter # Data::Printer doesn't like symlinks
ln -sf $SELF_PATH/dzil ~/.dzil
ln -sf $SELF_PATH/minicpanrc ~/.minicpanrc
ln -sf $SELF_PATH/perlcriticrc ~/.perlcriticrc
ln -sf $SELF_PATH/perltidyrc ~/.perltidyrc
ln -sf $SELF_PATH/psqlrc ~/.psqlrc
ln -sf $SELF_PATH/screenrc ~/.screenrc
ln -sf $SELF_PATH/tmux.conf ~/.tmux.conf
ln -sf $SELF_PATH/vim/vimrc ~/.vimrc
git submodule init
git submodule update
$SELF_PATH/inc/vim-update-bundles/vim-update-bundles
sh git_config.sh
# git extras
echo "installing git-extras"
cd inc/git-extras
sudo make install PREFIX="~/local"
# for some reason a "~" folder gets created in the git-extras install
sudo git clean -df
# silence warnings when perlbrew not installed
mkdir -p $HOME/perl5/perlbrew/etc
touch $HOME/perl5/perlbrew/etc/bashrc
#exec $SHELL