#!/bin/sh cd "$HOME" for FILE in config/*; do pushd "$HOME" DOTFILE=".${FILE##*/}" ln -s "$FILE" "$DOTFILE" popd done