summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorHendrik Jäger <hendrik.jaeger@dswiss.com>2022-04-05 11:45:57 +0200
committerHendrik Jäger <hendrik.jaeger@dswiss.com>2022-04-05 11:46:05 +0200
commiteb0aa69bf69a687843faa9c2e24d58a509bee3f2 (patch)
treed0428b3e77035e8cf93e95576974add960b12bf3 /.zshrc
parent79e0daa0ba0e120f19f6fae04b7d3c876b0d9ca5 (diff)
refactor plugin loading
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc35
1 files changed, 31 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index a801df5..b182e0a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -54,6 +54,18 @@ source ~/.zsh_aliases
source ~/.zsh_qemu
+# load plugin manager after all 'static' stuff is done
+source ~/Data/public/software/zinit/zinit.zsh
+
+
+# mostly static stuff, env vars
+zinit load 'https://github.com/joel-porquet/zsh-dircolors-solarized'
+zinit load "https://github.com/greymd/tmux-xpanes"
+
+
+# load sane options plugin before setting my own options
+zinit load 'https://github.com/willghatch/zsh-saneopt'
+
# options are usually independent and standalone
# so they can stay at the top
setopt AUTO_CD
@@ -93,14 +105,13 @@ setopt NO_BG_NICE
#setopt LONG_LIST_JOBS
+# load before completion system initialization
+zinit load 'https://github.com/zsh-users/zsh-completions'
+
# initialize completion system before loading plugins and external configs
source ~/.zsh_comprc
-# TODO break this up
-source ~/.zsh_zinit
-
-
# TODO reconsider this
# source /usr/share/autojump/autojump.sh
@@ -125,6 +136,13 @@ bindkey -M vicmd '^X^E' edit-command-line
bindkey -M viins '^X^E' edit-command-line
+#this mainly sets vars, binds keys, does zle stuff
+zinit load 'https://github.com/laurenkt/zsh-vimto'
+
+# functions and an autoload, should be fine here
+zinit load 'https://github.com/MichaelAquilina/zsh-you-should-use'
+
+
# source ~/.zsh_taskwarrior
# source ~/.zsh_functions
# source ~/.zsh_functions_media
@@ -148,6 +166,15 @@ typeset -U path
# so they go more to the bottom
+# should probably be closer to the bottom than the top?
+zinit load 'https://github.com/nojhan/liquidprompt'
+
+
+# needs to be loaded close to the end because it hooks into other stuff
+# see https://github.com/zsh-users/zsh-syntax-highlighting
+zinit load 'https://github.com/zsh-users/zsh-syntax-highlighting'
+
+
# commands to run after initialization is complete
#task awaiting
cat ~/.motd