Skip to content

Commit

Permalink
feat: Update process.
Browse files Browse the repository at this point in the history
  • Loading branch information
DasLampe committed Oct 8, 2023
1 parent 6a4bd29 commit 089acf0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(dir $(mkfile_path))
files := vimrc tmux.conf gitignore_global gitconfig zshrc

all: clean link
all: clean link update

define FILE_link
[ -f ~/.$(1) -o -L ~/.$(1) ] || ln -s $(current_dir)$(1) ~/.$(1);
Expand All @@ -18,8 +18,13 @@ link:
mkdir -p ~/.config/tilix/schemes/
ln -s $(current_dir)/tilix/schemes/catppuccin/src/Catppuccin-Mocha.json ~/.config/tilix/schemes/Catppuccin-Mocha.json

update:
git pull origin $$(git branch --show-current)
git submodule update --init
vim -c "PlugUpgrade|PlugUpdate|PlugInstall|q|q"

clean:
$(foreach f,$(files),$(call FILE_unlink,$(f)))
$(call FILE_unlink,"config/tilix/schemes/Catppuccin-Mocha.json")

.PHONY: all link clean
.PHONY: all link update clean

0 comments on commit 089acf0

Please sign in to comment.