diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-04 18:38:25 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-04 18:38:25 -0500 |
commit | 09872874611c94e606ec402316165530c41c7209 (patch) | |
tree | cd6e68146fda1af0f89ea396ffd4581bdca93438 /zsh | |
parent | 968230670ee95d64f6140644aba99e380010a999 (diff) | |
download | dotconfig-09872874611c94e606ec402316165530c41c7209.tar.xz dotconfig-09872874611c94e606ec402316165530c41c7209.zip |
changed system for loading zsh plugins
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/zprofile.G3N2 | 4 | ||||
-rw-r--r-- | zsh/zprofile.openbsdx230 | 4 | ||||
-rw-r--r-- | zsh/zprofile.voidx250 | 4 | ||||
-rw-r--r-- | zsh/zshrc | 11 |
4 files changed, 16 insertions, 7 deletions
diff --git a/zsh/zprofile.G3N2 b/zsh/zprofile.G3N2 index eedd9d0..c62022d 100644 --- a/zsh/zprofile.G3N2 +++ b/zsh/zprofile.G3N2 @@ -3,6 +3,10 @@ export WIFIDEV="wlp2s0f0u3" export ETHEDEV="eno1" export PATH="/home/timmy/scripts/pkgmgt/emerge:$PATH" +export ZPLUGINS=( +/usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh +/usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh +) alias \ e="sudo emerge" \ eaum="sudo emerge --autounmask-continue" \ diff --git a/zsh/zprofile.openbsdx230 b/zsh/zprofile.openbsdx230 index c3a6a95..9a27234 100644 --- a/zsh/zprofile.openbsdx230 +++ b/zsh/zprofile.openbsdx230 @@ -3,4 +3,8 @@ #export PATH="/home/timmy/scripts/pkgmgt/xbps:$PATH" export WIFIDEV="iwn0" export ETHEDEV="em0" +#/usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh +export ZPLUGINS=( +/usr/local/share/zsh-syntax-highlighting/zsh-syntax/highlighting.zsh +) source /home/timmy/.config/zsh/zprofile.base diff --git a/zsh/zprofile.voidx250 b/zsh/zprofile.voidx250 index 19ff378..49feb89 100644 --- a/zsh/zprofile.voidx250 +++ b/zsh/zprofile.voidx250 @@ -3,6 +3,10 @@ export WIFIDEV="wlp3s0" export ETHEDEV="enp0s25" export PATH="/home/timmy/scripts/pkgmgt/xbps:$PATH" +export ZPLUGINS=( +/usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh +/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +) alias \ xi="sudo xbps-install" \ xq="xbps-query -R --search" \ @@ -19,8 +19,7 @@ setopt SHARE_HISTORY # Share history between zsh sessions setopt HIST_REDUCE_BLANKS setopt HIST_IGNORE_DUPS # Successive duplicate entries ignored setopt HIST_IGNORE_SPACE # Entries with leading space ignored -# This seems to reduce overall disk writes -#unsetopt EXTENDED_HISTORY # Save only the command, not any superfluous info +setopt EXTENDED_HISTORY # Save superfluous info with command to reduce disk writes # Change cursor shape for different vi modes (Cred: LARBS) function zle-keymap-select () { @@ -39,8 +38,6 @@ echo -n '\e[5 q' # Use beam shape cursor on startup preexec() { echo -n '\e[5 q' ;} # Use beam shape cursor for each new prompt # Load zsh plugins; should be last -#source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh -source /usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh 2>/dev/null -[ "$COMPUTER" = "desktop" ] && source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh 2>/dev/null || \ -[ "$COMPUTER" = "laptop" ] && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null -#source /home/timmy/.config/broot/launcher/bash/br +for plugin in $ZPLUGINS; do + source $plugin +done |