diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-05-12 13:03:46 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-05-12 13:03:46 +0000 |
commit | d783d5ccf1fce32f6bb288b91504ec7c6cee7581 (patch) | |
tree | 544ab357f32b4b420e7680349b057669336e6494 | |
parent | 270398eb68c82701e0f1b6fa388ec180f0635bbe (diff) |
sourcing plugins in a better way
-rwxr-xr-x | zsh/.zshrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -84,7 +84,7 @@ bindkey -v | |||
84 | # export KEYTIMEOUT=1 | 84 | # export KEYTIMEOUT=1 |
85 | 85 | ||
86 | # reverse search | 86 | # reverse search |
87 | bindkey '^R' history-incremental-search-backward | 87 | # bindkey '^R' history-incremental-search-backward |
88 | 88 | ||
89 | # Use vim keys in tab complete menu: | 89 | # Use vim keys in tab complete menu: |
90 | bindkey -M menuselect 'h' vi-backward-char | 90 | bindkey -M menuselect 'h' vi-backward-char |
@@ -115,5 +115,7 @@ echo -ne '\e[5 q' # Use beam shape cursor on startup. | |||
115 | preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. | 115 | preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. |
116 | 116 | ||
117 | # Load plugins | 117 | # Load plugins |
118 | source ~/.cache/zsh/plugins/sudo.plugin.zsh | 118 | for plugin in ~/.cache/zsh/plugins/*; do |
119 | source "$plugin" | ||
120 | done | ||
119 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null | 121 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null |