ZSH: Linted files

This commit is contained in:
2024-10-29 13:59:15 +01:00
parent 864f0805ba
commit 384dcae932
6 changed files with 29 additions and 22 deletions

View File

@ -1,21 +1,21 @@
## Automatically compile all compilable files to zwc
function zwcautocompile () {
function zwcautocompile() {
autoload -Uz zrecompile
for zsh_file in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
zrecompile -pq $zsh_file && rm -f $zsh_file.zwc.old
for f in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
zrecompile -pq ${f} && rm -f ${f}.zwc.old
done
if [[ -d ${ZAUTOLOADDIR} ]]; then
for f in ${ZAUTOLOADDIR}/*; do
zrecompile -pq $f && rm -f $f.zwc.old
zrecompile -pq ${f} && rm -f ${f}.zwc.old
done
fi
if [[ -d ${ZLIBDIR} ]]; then
for f in ${ZLIBDIR}/*; do
zrecompile -pq $f && rm -f $f.zwc.old
zrecompile -pq ${f} && rm -f ${f}.zwc.old
done
fi
}
}