#!/bin/bash
WGET=$(which wget)
URL="http://pluto.fsinf.at/~astra/config/"
FILE="skel.tar.gz"
CLEAN=".vim"
# fetch file from server
$WGET -q "${URL}${FILE}"
if [ "$1" == "clean" ]; then
for i in $CLEAN
do
rm -rf $i
done
fi
cd ~
tar -xzf $FILE --strip-components=1
rm $FILE