criando os links simbólicos
cd ~/dot
for file in *; do
ln -sf dot/"$file" ~/."$file"
done
excluindo os links simbólicos
cd
for dotfile in .*; do
test -L || continue
target="$(readlink "$dotfile")"
[[ $target =~ ^dot/ ]] && echo rm "$dotfile"
done