From 2ef127fe7a33ba24f43c544f58042f166152b5eb Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 5 Sep 2022 11:11:57 +0300 Subject: [PATCH] zsh: globbing --- .config/zsh/lib/selfservice.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/lib/selfservice.zsh b/.config/zsh/lib/selfservice.zsh index 0a84345..8722097 100644 --- a/.config/zsh/lib/selfservice.zsh +++ b/.config/zsh/lib/selfservice.zsh @@ -13,13 +13,13 @@ dotfiles-git() { ( z-zwc-gen() { local i - for i ( $(find "${ZSHU[d_conf]}/" -xdev -type f -name '*.zsh') ) ; do + for i ( "${ZSHU[d_conf]}"/**/*.zsh(N.r) ) ; do zcompile -U "$i" done } z-zwc-flush() { - find "${ZSHU[d_conf]}/" -xdev -type f -name '*.zwc' -delete + rm -f "${ZSHU[d_conf]}"/**/*.zwc(N.r) } z-update() {