From e7dadd014f8782903aa564c13e197ce7204e621c Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 19 Jul 2021 07:33:55 +0100 Subject: [PATCH] Added zsh plugins --- .dotfiles/1-zsh | 8 +++++++- Makefile | 8 ++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.dotfiles/1-zsh b/.dotfiles/1-zsh index f2791e4..3b5ef29 100644 --- a/.dotfiles/1-zsh +++ b/.dotfiles/1-zsh @@ -1,6 +1,12 @@ export ZSH="$HOME/.oh-my-zsh" -plugins=(git npm docker zsh-completions) +plugins=( + git + docker + zsh-completions + zsh-syntax-highlighting + zsh-autosuggestions +) autoload -U compinit && compinit fpath=($fpath ~/.zsh/completion) diff --git a/Makefile b/Makefile index 66a18f0..af81550 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,9 @@ pre-reqs: ## Install all required binaries. which bandwhich > /dev/null || brew install bandwhich; \ which btm > /dev/null || cargo install bottom; \ which procs > /dev/null || brew install procs; \ - which dog > /dev/null || brew install dog + which dog > /dev/null || brew install dog; \ + git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions; \ + git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting; .PHONY: upgrade upgrade: ## Upgrade all required binaries. @@ -67,7 +69,9 @@ upgrade: ## Upgrade all required binaries. which bandwhich > /dev/null && brew upgrade bandwhich; \ which btm > /dev/null && cargo install bottom; \ which procs > /dev/null && brew upgrade procs; \ - which dog > /dev/null && brew upgrade dog + which dog > /dev/null && brew upgrade dog; \ + cd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && git pull && cd -; \ + cd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git pull && cd -; .PHONY: dotfiles dotfiles: ## Installs the dotfiles.