blob: ce1250351736145d166a1c37700fda24df0500d5 (
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
|
# Links configuration files to the ones listed here. Backup and remove your's
# and then run this script (while inside repo directory).
#
# Note: This solution is lazy and causes some problems. Like not being able to
# track vim pluggins.
# bash
ln -s ${PWD}/profile ~/.profile
ln -s ${PWD}/bash_aliases ~/.bash_aliases
ln -s ${PWD}/bashrc ~/.bashrc
ln -s ${PWD}/inputrc ~/.inputrc
# vim
# ~/.vimrc takes priority over ~/.vim/vimrc, so remove the former first
[ -d ~/.vim/ ] || mkdir -p ~/.vim/{undo,swap,backup,plugins}
chmod 0700 ~/.vim/swap # swap files should only be readable by owner
ln -s ${PWD}/vim/vimrc ~/.vim/vimrc
ln -s ${PWD}/vim/fun.vim ~/.vim/fun.vim
# done
echo "all done :)"
|