#!/bin/bash

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

for dotfiles in $SCRIPTDIR/*; do
	dotfile=${dotfiles##*/}
	if [[ $dotfile != "setup"  ]]; then
		if [[ ! -a $HOME/.$dotfile ]]; then
			ln -s $SCRIPTDIR/$dotfile $HOME/.$dotfile
			echo $dotfile "symlinked to" $HOME/.$dotfile
		else
			echo "already exists:" $HOME/.$dotfile
		fi
	fi
done
