2012-02-16 21:14:35 -05:00
|
|
|
#!/bin/bash
|
2012-02-15 10:23:26 -05:00
|
|
|
|
2012-05-07 16:26:45 -04:00
|
|
|
# Install oh-my-zsh
|
|
|
|
if [ ! -d ~/.oh-my-zsh ]; then
|
|
|
|
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
|
|
|
fi
|
|
|
|
|
2013-01-05 14:56:32 -05:00
|
|
|
# Install emacs.d
|
|
|
|
if [ ! -d ~/.emacs.d ]; then
|
|
|
|
git clone https://github.com/walkah/emacs.d.git ~/.emacs.d
|
|
|
|
fi
|
|
|
|
|
2013-08-21 00:45:28 -04:00
|
|
|
DOTFILES=`cd $(dirname $0)/home; pwd`
|
2012-02-15 10:23:26 -05:00
|
|
|
|
2013-08-21 00:45:28 -04:00
|
|
|
for FILE in `ls -a $DOTFILES`; do
|
2012-02-15 10:23:26 -05:00
|
|
|
NAME=`basename $FILE`
|
2013-08-21 00:45:28 -04:00
|
|
|
TARGET=$HOME/$NAME
|
2012-02-15 10:23:26 -05:00
|
|
|
|
2013-08-21 00:45:28 -04:00
|
|
|
if [ $NAME != '.' ] && [ $NAME != '..' ]; then
|
2012-02-15 10:23:26 -05:00
|
|
|
if [ -L $TARGET ]; then
|
|
|
|
echo "$TARGET exists"
|
|
|
|
else
|
|
|
|
ln -vsf $FILE $TARGET
|
|
|
|
fi
|
|
|
|
fi
|
2012-02-16 21:14:35 -05:00
|
|
|
done
|