#!/bin/bash
safe_link(){
local src="$1"
local dest="$HOME/`basename $src`"
[ ! -e "$dest" ] && ln -sf "$src" "$dest"
}
DOTFILES="/Users/x/Dropbox/dotfile/dotfiles"
for f in `ls -A $DOTFILES`; do
safe_link "$DOTFILES/$f";
done
echo 'dot file install done'