From 56584b3abe16192d40dba6c3b11c1cbd563ba1e4 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 5 Mar 2024 15:57:58 +0200 Subject: [PATCH] Add zsh plugins --- Makefile | 9 ++++++--- macos/Brewfile | 1 + shell/.zshrc | 6 +++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b0b2536..6b331f8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -linux: link bash_git_prompt tmux vim -macos: link link_mac mac_setup bash_git_prompt brew cask tmux vim +linux: link bash_git_prompt tmux vim zsh +macos: link link_mac mac_setup bash_git_prompt brew cask tmux vim zsh link: -rm ~/.aliases @@ -10,7 +10,7 @@ link: -rm ~/.tmux.conf -rm ~/.zsh/.zprompt -rm ~/.zsh/.zshrc - mkdir -p ~/.zshs + mkdir -p ~/.zsh ln -s ~/Git/dotfiles/git/.git-completion.bash ~ ln -s ~/Git/dotfiles/git/.gitconfig ~ ln -s ~/Git/dotfiles/shell/.aliases ~ @@ -51,3 +51,6 @@ vim: ln -s ~/Git/dotfiles/.vim ~ ln -s ~/Git/dotfiles/.vimrc ~ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim + +zsh: + git clone git@github.com:softmoth/zsh-vim-mode.git ~/.zsh/zsh-vim-modes diff --git a/macos/Brewfile b/macos/Brewfile index 4c09bfa..884892d 100644 --- a/macos/Brewfile +++ b/macos/Brewfile @@ -18,3 +18,4 @@ brew 'tmux' brew 'tree' brew 'wget' brew 'youtube-dl' +brew 'zsh-syntax-highlighting' diff --git a/shell/.zshrc b/shell/.zshrc index 154589b..e5ed1df 100644 --- a/shell/.zshrc +++ b/shell/.zshrc @@ -41,9 +41,13 @@ setopt no_beep # Don't beep on command input error fpath+=$HOME/Git/dotfiles/functions autoload extract -# load bashcompinit for some old bash completions +# Load bashcompinit for some old bash completions autoload bashcompinit && bashcompinit source $ZDOTDIR/.zshrc.local source $HOME/.aliases source $HOME/.aliases.local + +# Plugins +source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source "$ZDOTDIR/zsh-vim-mode/zsh-vim-mode.plugin.zsh"