summaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc11
1 files changed, 4 insertions, 7 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index b320821..ec04280 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -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