stephenroller / dotfiles

My dotfiles

This URL has Read+Write access

dotfiles / deploy.sh
100755 21 lines (15 sloc) 0.387 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
 
for dotfile in .bashrc .hgrc .screenrc .vimrc .inputrc .pythonrc.py .gitconfig
do
ln -fs "`pwd`/$dotfile" ~/$dotfile
done
 
# handle ssh config
if [ ! -d ~/.ssh ]; then
 
mkdir -p ~/.ssh
chmod 0700 ~/.ssh
fi
ln -fs "`pwd`/.sshconfig" ~/.ssh/config
 
# and handle special mercurial extensions
rmdir ~/.hgext 2>/dev/null
rm ~/.hgext 2>/dev/null
ln -s `pwd`/.hgext ~/