#!/bin/sh folders=($(ls ${PWD}/config)) for folder in "${folders[@]}"; do ln -sf ${PWD}/config/${folder} ${HOME}/.config/ done