aboutsummaryrefslogtreecommitdiffstats
path: root/linker.sh
blob: 7d2aa61ecf6fd68629013a16d321e95b28acc036 (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
#!/bin/bash

cd ~

# Start with .bashrc
if [[ -e .bashrc ]] ; then
    cp .bashrc .bashrc.original
fi
ln -s ~/dotfiles/.bashrc ~/.bashrc

# Next .vim(rc)
if [[ -e .vimrc ]] ; then
    cp .vimrc .vimrc.original
fi
if [[ -e .vim ]] ; then
    cp -r .vim .vim.original
fi
ln -s ~/dotfiles/.vimrc ~/.vimrc
ln -s ~/dotfiles/.vim ~/.vim

# Next .git
if [[ -e .gitconfig ]] ; then
    cp .gitconfig .gitconfig.original
fi
if [[ -e .gitignore_global ]] ; then
    cp .gitignore_global .gitignore_global.original
fi
ln -s ~/dotfiles/.gitconfig ~/.gitconfig
ln -s ~/dotfiles/.gitignore_global .gitignore_global