1
0

zsh: update
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-07-23 10:59:44 +03:00
parent 48e93e48b6
commit 00648901a9
14 changed files with 219 additions and 131 deletions

View File

@@ -1,28 +1,50 @@
#!/bin/zsh
typeset -Ua zshu_modules
zshu_modules+=(
typeset -a zshu_modules
## DEBUG module load order
# typeset -a zshu_m0 zshu_m1
zshu_modules=(
clone
langinfo
parameter
sched
termcap
terminfo
watch
zpty
zle
zleparameter
deltochar
complete
complist
computil
datetime
langinfo
main
mathfunc
parameter
stat
system
terminfo
zle
zutil
compctl
)
for i ( ${zshu_modules} ) ; do
case "$i" in
*/* ) ;;
* ) i="zsh/$i" ;;
esac
i="zsh/$i"
## DEBUG module load order
# zshu_m0=( $(zmodload) )
# if ((${zshu_m0[(Ie)${i}]})); then
# echo "# already loaded: $i" >&2
# continue
# fi
zmodload "$i"
## DEBUG module load order
# zshu_m1=( $(zmodload) )
# for k ( ${zshu_m1} ) ; do
# if [ "$k" = "$i" ] ; then continue ; fi
# if ((${zshu_m0[(Ie)${k}]})); then
# continue
# fi
# echo "# new module loaded (with $i): $k" >&2
# done
done
unset i zshu_modules
## DEBUG module load order
# unset zshu_m0 zshu_m1
autoload -Uz +X colors && colors