From 284228ad801a8221064072f88be90f0cc6c2421e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 17 Feb 2023 09:00:12 +0000 Subject: [PATCH] Remove lazygit bootstrap and add to makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7524e2dc..14f1a341 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,8 @@ ZSH_TARGETS := $(ZSH_ITEMS:ohmyzsh/%.zsh=$(ZSH_CUSTOM_DIR)/%.zsh) SSH_ITEMS := $(wildcard ssh/*) SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%) +LAZY_REPO := https://github.com/folke/lazy.nvim.git +LAZY_DIR := /home/tux/.local/share/nvim/lazy/lazy.nvim POWERLEVEL_REPO := https://github.com/romkatv/powerlevel10k.git POWERLEVEL_DIR := $(ZSH_CUSTOM_DIR)/themes/powerlevel10k ZSH_SYNTAX_REPO := https://github.com/zsh-users/zsh-syntax-highlighting.git @@ -35,12 +37,13 @@ unlink: for link in $(SSH_TARGETS); do rm "$$link"; done rmdir $(HOME)/.ssh/sockets -install: $(ZSH_DIR) $(POWERLEVEL_DIR) $(ZSH_SYNTAX_DIR) $(ZSH_TARGETS) $(TPM_DIR) +install: $(ZSH_DIR) $(POWERLEVEL_DIR) $(ZSH_SYNTAX_DIR) $(ZSH_TARGETS) $(LAZY_DIR) $(TPM_DIR) python3 -m pip list | grep -E "libtmux.*0\.16\.1" > /dev/null ||\ python3 -m pip install --user libtmux==0.16.1 uninstall: rm -rf $(ZSH_DIR) + rm -rf $(LAZY_DIR) pacman: sort -h pkglist.txt -o pkglist.txt @@ -54,6 +57,9 @@ $(SSH_TARGETS): $(SSH_DIR)/%: ssh/% $(HOME_TARGETS) $(CONFIG_TARGETS) $(ZSH_TARGETS) $(SSH_TARGETS): ln -s $(PWD)/$? $@ +$(LAZY_DIR): + git clone --depth 1 $(LAZY_REPO) $@ + $(POWERLEVEL_DIR): $(ZSH_DIR) git clone --depth 1 $(POWERLEVEL_REPO) $@