#!/bin/sh # Exports config files for file in $(find src -type f); do export clean=$(echo $file | cut -c 4-) #Removes src prefix install -d $(dirname $clean) install -m 644 $file $clean done for file in $(find home -type f); do export clean=/home/$USER/$(echo $file | cut -c 4-) install -o $USER -d $(dirname $clean) install -o $USER $file $clean done