[install] adds submodule init
Also updated README and dumped some shit from the old setup script
This commit is contained in:
parent
677f03597a
commit
c3e6de560d
3 changed files with 6 additions and 15 deletions
|
@ -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)
|
||||
```
|
||||
|
||||

|
||||
|
|
6
install
6
install
|
@ -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
13
setup
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue