From d783d5ccf1fce32f6bb288b91504ec7c6cee7581 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 12 May 2021 18:33:46 +0530 Subject: sourcing plugins in a better way --- zsh/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 38cec68..20e0dda 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -84,7 +84,7 @@ bindkey -v # export KEYTIMEOUT=1 # reverse search -bindkey '^R' history-incremental-search-backward +# bindkey '^R' history-incremental-search-backward # Use vim keys in tab complete menu: bindkey -M menuselect 'h' vi-backward-char @@ -115,5 +115,7 @@ echo -ne '\e[5 q' # Use beam shape cursor on startup. preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. # Load plugins -source ~/.cache/zsh/plugins/sudo.plugin.zsh +for plugin in ~/.cache/zsh/plugins/*; do + source "$plugin" +done source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null -- cgit v1.2.3