[install] adds submodule init

Also updated README and dumped some shit from the old setup script
This commit is contained in:
Josh Sherman 2016-11-17 15:50:23 -06:00
parent 677f03597a
commit c3e6de560d
3 changed files with 6 additions and 15 deletions

View file

@ -8,7 +8,7 @@ useless.
## Stupid simple installation one-liner
```shell
source <(curl -s https://raw.githubusercontent.com/joshtronic/dotfiles/master/setup)
source <(curl -s https://raw.githubusercontent.com/joshtronic/dotfiles/master/install)
```
![LeePaceCelebrate](http://i.giphy.com/Vc5x1pG5RFH3O.gif)

View file

@ -6,4 +6,8 @@ DOTFILES_DIR=~/.dotfiles
rm -rf $DOTFILES_DIR
mkdir $DOTFILES_DIR
git clone $DOTFILES_REPO $DOTFILES_DIR
make -C $DOTFILES
cd $DOTFILES_DIR
git pull origin master
git submodule update --init --recursive
make

13
setup
View file

@ -31,19 +31,6 @@ PIP=(
"psutil"
)
# Checks if the directory exists
if [ ! -d "$DOTFILES_DIR" ]; then
mkdir $DOTFILES_DIR
git clone $DOTFILES_REPO $DOTFILES_DIR
fi
# TODO Check if the directory contains our configured repo
# Gets the latest code
cd $DOTFILES_DIR
git pull origin master
git submodule update --init --recursive
# Creates our symlinks
for SYMLINK in "${SYMLINKS[@]}"; do
# TODO Check if the file exists and whether or not it's a symlink