From 1eca5dc0fe3648341e1707efc811162fc5056888 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 8 Dec 2021 11:49:41 +0100 Subject: zsh: add plugins --- zsh/.zshrc | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 9eaf1bb..472b254 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,10 +1,15 @@ # now use Starship instead of oh-my-zsh theme export ZSH="/home/dcariotti/.oh-my-zsh" -plugins=(git) +#ZSH_THEME="essembeh" +ZSH_THEME="lukerandall" +plugins=( + git + zsh-autosuggestions + zsh-syntax-highlighting +) source $ZSH/oh-my-zsh.sh -[[ $TERM != "screen" ]] && exec tmux eval "$(starship init zsh)" export NVM_DIR="$HOME/.nvm" @@ -25,16 +30,7 @@ export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH" alias mutt=neomutt export TERM=xterm-256color -rga() { - RG_PREFIX="rg --files-with-matches" - local file - - file="$( - FZF_DEFAULT_COMMAND="$RG_PREFIX '$*'" \ - fzf --sort --preview="[[ ! -z {} ]] && rg --pretty --context 5 {q}" \ - --phony -q "$*" \ - --bind "change:reload:$RG_PREFIX {q}" \ - --preview-window="70%:wrap" - )" && - xdg-open "$file" -} +fpath+=${ZDOTDIR:-~}/.zsh_functions + +# Generated for envman. Do not edit. +[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh" -- cgit v1.2.3-18-g5258