summaryrefslogtreecommitdiff
path: root/bin/load.sh
blob: e2487df6990160f8161713d368aa03b34882bcfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

WGET=$(which wget)
URL="http://pluto.fsinf.at/~astra/config/"
FILE="skel.tar.gz"
CLEAN=".vim"

cd ~

# fetch file from server
$WGET -q "${URL}${FILE}"

if [ "$1" == "clean" ]; then
	for i in $CLEAN
	do
		rm -rf $i
	done
fi

tar -xzf $FILE --strip-components=1
rm $FILE