Added zsh plugins

This commit is contained in:
Marcus Noble 2021-07-19 07:33:55 +01:00
parent 05fd6a64bd
commit e7dadd014f
2 changed files with 13 additions and 3 deletions

View File

@ -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)

View File

@ -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.