From c461951f7e1a9c7862583025de15627d9aa1de25 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Mon, 1 Jun 2020 12:16:08 +0800 Subject: zsh+basics: reorganise XDG and use antibody instead of zplug for zsh plugins --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8b80f59..469be25 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,10 @@ all_files := basics emacs spacemacs doom-emacs git i3wm bspwm vim nvim tmux x zs simple_files := emacs spacemacs doom-emacs vim fish -.PHONY: $(all_files) zplug +.PHONY: $(all_files) + +MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) +BASE_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH))) $(simple_files): @@ -41,12 +44,12 @@ nvim: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim stow -t ~ $@ -zsh: basics zplug +zsh: basics antibody stow -t ~ $@ -zplug: - curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh - +antibody: $(BASE_DIR)/zsh/.config/zsh/zsh_plugins.txt + curl -sfL git.io/antibody | sh -s - -b $(BASE_DIR)/zsh/.local/bin + $(BASE_DIR)/zsh/.local/bin/antibody bundle < $(BASE_DIR)/zsh/.config/zsh/zsh_plugins.txt > $(BASE_DIR)/zsh/.config/zsh/zsh_plugins.sh $(addprefix uninstall_,$(all_files)): -- cgit v1.2.3