From faf5bc4ce402680d6ee668c4b7b923c40dd958a0 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 16 Oct 2024 16:20:56 +0200 Subject: [PATCH] zsh: first prompt latency --- .gitmodules | 3 +++ common/.config/zsh/.zshrc | 9 +++++++-- common/.config/zsh/plugins/zsh-defer | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 160000 common/.config/zsh/plugins/zsh-defer diff --git a/.gitmodules b/.gitmodules index 43216e51a..2e09b8801 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "common/.config/zsh/plugins/fzf-tab"] path = common/.config/zsh/plugins/fzf-tab url = https://github.com/Aloxaf/fzf-tab +[submodule "common/.config/zsh/plugins/zsh-defer"] + path = common/.config/zsh/plugins/zsh-defer + url = https://github.com/romkatv/zsh-defer diff --git a/common/.config/zsh/.zshrc b/common/.config/zsh/.zshrc index c9f78bbba..73eeee3ed 100644 --- a/common/.config/zsh/.zshrc +++ b/common/.config/zsh/.zshrc @@ -1,12 +1,17 @@ #!/bin/zsh +source "$ZDOTDIR"/plugins/zsh-defer/zsh-defer.plugin.zsh + +for f in "$ZDOTDIR"/configs/*; do + source "$f" +done + for f in \ - "$ZDOTDIR"/configs/* \ "$ZDOTDIR"/plugins/*/*.plugin.zsh \ /usr/share/zsh/plugins/*/*.plugin.zsh \ /usr/share/fzf/*.zsh do - source $f + [ "$f" != "${ZDOTDIR}/plugins/zsh-defer.plugin.zsh" ] && zsh-defer source $f done export GPG_TTY="$(tty)" diff --git a/common/.config/zsh/plugins/zsh-defer b/common/.config/zsh/plugins/zsh-defer new file mode 160000 index 000000000..53a26e287 --- /dev/null +++ b/common/.config/zsh/plugins/zsh-defer @@ -0,0 +1 @@ +Subproject commit 53a26e287fbbe2dcebb3aa1801546c6de32416fa