From 3f527a0c739005292687aa075e44cb71693d51a1 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Thu, 29 Feb 2024 11:10:03 +0300 Subject: [PATCH] zsh: modules --- .config/zsh/_.zsh | 3 +++ .config/zsh/rc.zsh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/zsh/_.zsh b/.config/zsh/_.zsh index fd1cfd2..e0199cc 100644 --- a/.config/zsh/_.zsh +++ b/.config/zsh/_.zsh @@ -1,5 +1,8 @@ #!/bin/zsh +## early module load +zmodload -s zsh/zprof + typeset -gA ZSHU ZSHU[t_begin]=${(%):-%D{%s.%6.}} diff --git a/.config/zsh/rc.zsh b/.config/zsh/rc.zsh index cf17523..b8ad564 100644 --- a/.config/zsh/rc.zsh +++ b/.config/zsh/rc.zsh @@ -21,7 +21,7 @@ for i ( ${zshu_modules} ) ; do */* ) ;; * ) i="zsh/$i" ;; esac - zmodload -i "$i" + zmodload "$i" done unset i zshu_modules