-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (41 loc) · 1.21 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
pull: # Pull the latest changes
git config credential.helper cache
git pull
pull_submod_init: # Pull the latest submodules
git submodule update --init --recursive
pull_submod: # Pull the latest submodules
git submodule update --recursive --remote
reset: # Resets the directory to the last commit
git fetch --all
git reset --hard origin/master
git reset --hard HEAD
git clean -f -d
git pull
restorebash: # Restores the bash config file
cp -rf ~/.bashrcOLD ~/.bashrc
spell: # Copies the current working vim spellfile into this repository
cp -r ~.vim/spell* ~/DotFiles/.vim/spell/
init: # Prep the install
make pull_submod_init
make spell
install: # Copy config files
@echo "Started installation"
@echo "Copying configs"
@rsync -r -q .vimrc ~/
@rsync -r -q .vim ~/
@rsync -r -q .tmux.conf ~/
@rsync -r -q .tmux ~/
@rsync -r -q .gitconfig ~/
@rsync -r -q .local ~/
@rsync -r -q .gnupg ~/
@rsync -r -q .config ~/
@rsync -r -q .password-store ~/
@rsync -r .zshrc ~/
@rm ~/.zcompdump # Needed to force a refresh of the completion cache
@echo "Done"
@tput bel
.PHONY: devcontainer-setup
devcontainer-setup:
chmod +x ./new\ machine\ setup/devcontainer.sh
./new\ machine\ setup/devcontainer.sh