use the init script in my config repo
This commit is contained in:
parent
c85f20d248
commit
1e7dfe7721
1 changed files with 3 additions and 9 deletions
12
newbox
12
newbox
|
|
@ -32,15 +32,9 @@ if ! [ -d config ]; then
|
||||||
git clone git://github.com/samsonjs/config || fail "cannot clone config repo"
|
git clone git://github.com/samsonjs/config || fail "cannot clone config repo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for FILE in config/*; do
|
cd config
|
||||||
DOTFILE=".${FILE##*/}"
|
./init.sh
|
||||||
if [ -e "$DOTFILE" ]; then
|
cd ..
|
||||||
mkdir original-dot-files >/dev/null 2>/dev/null
|
|
||||||
echo "Existing file found at $DOTFILE, moving to ~/original-dot-files."
|
|
||||||
mv "$DOTFILE" original-dot-files/
|
|
||||||
fi
|
|
||||||
ln -s "$FILE" "$DOTFILE"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo " * Done!"
|
echo " * Done!"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue