public
Description:
Homepage:
Clone URL: git://github.com/jamesgolick/dotfiles.git
dotfiles / symlink_it.sh
100755 22 lines (15 sloc) 0.404 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
#
# "borrowed" from Jonathan Palardy (http://github.com/jpalardy/etc_config/tree/master)
 
function relink() {
  rm -i $1
  ln -sn $2 $1
}
 
cd ..
 
relink .bash_profile etc/bash_profile
relink .bash etc/bash
 
relink .vim etc/vim
relink .vimrc etc/vimrc
 
relink .gitconfig etc/gitconfig
relink .gitignore etc/gitignore
relink .screenrc etc/screenrc