diff --git a/zsh/makefile b/zsh/makefile index 976068d..d4f5146 100644 --- a/zsh/makefile +++ b/zsh/makefile @@ -22,12 +22,10 @@ endif update: -ifeq ($(shell [ -e $(ZPLUG_DIR) ] $(return_val_truthy) ), true) - echo "=> Updating zplug" - source $(ZPLUG_DIR)/init.zsh ; zplug install ; zplug update -else - $(report) warn "No zplug install detected. Skipping." -endif + [ -e $(ZPLUG_DIR) ] \ + && ( echo "=> Updating zplug" \ + source $(ZPLUG_DIR)/init.zsh ; source $(ZSH_DIR)/zplug ; zplug install ; zplug update ) \ + || $(report) warn "No zplug install detected. Skipping." remove: ifeq ($(shell [ -e $(ZPLUG_DIR) ] $(return_val_truthy) ), true)