Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ea5686879d
Fetching contributors…

Cannot retrieve contributors at this time

executable file 36 lines (28 sloc) 0.602 kB
#!/usr/bin/env bash
function link_file {
source="${PWD}/$1"
target="${HOME}/${1/_/.}"
if [ -h "${target}" ] ; then
echo "Exists: $target"
else
echo "linking $source"
ln -sf ${source} ${target}
fi
}
echo "Linking dotfiles..."
for i in _*
do
link_file $i
done
if [ ! -d "$HOME/.vimswap/" ]; then
echo "creating vimswap dir"
mkdir ~/.vimswap
mkdir ~/.vimswap/undo
mkdir ~/.vimswap/backup
fi
if [ ! -d "$HOME/.vimtags/" ]; then
echo "creating vimtags dir"
mkdir ~/.vimtags
touch ~/.vimtags/tags
fi
echo "Done!"
Jump to Line
Something went wrong with that request. Please try again.