1
0

Compare commits

..

No commits in common. "0289d90fb900a906c3257ee81e7e61d9ae66bc8f" and "af26648283ec6557347834224612e007da99331f" have entirely different histories.

5 changed files with 4 additions and 45 deletions

View File

@ -30,3 +30,5 @@ else
## development tree ## development tree
gen_gitignore "${path_gitignore}" gen_gitignore "${path_gitignore}"
fi fi
exit 1

View File

@ -6,7 +6,6 @@
!/.config/dotfiles/gitignore !/.config/dotfiles/gitignore
!/.config/dotfiles/install.sh !/.config/dotfiles/install.sh
!/.config/dotfiles/scripts/.keep !/.config/dotfiles/scripts/.keep
!/.config/dotfiles/woodpecker.yml
!/.config/htop/htoprc.example !/.config/htop/htoprc.example
!/.config/mc/ini.example !/.config/mc/ini.example
!/.config/zsh/_.zsh !/.config/zsh/_.zsh

View File

@ -1,34 +0,0 @@
steps:
- name: check
image: debian:bookworm-slim
environment:
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
DEBIAN_PRIORITY: critical
TERM: linux
MALLOC_ARENA_MAX: "4"
commands:
- |
: # install required packages
apt-get -y update
apt-get -y install file findutils git shellcheck zsh
apt-get -y clean
- |
: # verify that repo doesn't contain "garbage"
find_fast() {
find "$@" -printf . -quit | grep -Fq .
}
if find_fast ./ -type f -name '*.zwc' ; then
echo 'found *.zwc' >&2
find ./ -type f -name '*.zwc'
exit 1
fi
- |
: # try zsh compile
git ls-files | sort -uV | xargs -r file -N -i | grep text/x-shellscript | cut -d: -f1 \
| xargs -r -n1 zsh -efc 'zcompile -UR "$@"' --
find ./ -type f -name '*.zwc' -delete
- |
: # try shellcheck (except for *.zsh)
git ls-files | grep -Fv '.zsh' | sort -uV | xargs -r file -N -i | grep text/x-shellscript | cut -d: -f1 \
| xargs -r -n1 shellcheck

View File

@ -83,7 +83,6 @@ __z_comp_external() {
return 3 return 3
fi fi
fi fi
zcompile -zUR "$f" || return 4
autoload -Uz "_$c" autoload -Uz "_$c"
return 0 return 0
@ -111,9 +110,8 @@ z-comp-invalidate() {
[ -n "$1" ] || return 1 [ -n "$1" ] || return 1
f="${ZSHU[d_cache]}/completion/_$1" f="${ZSHU[d_cache]}/completion/_$1"
rm -f "$f.zwc"
[ -f "$f" ] || return 2 [ -f "$f" ] || return 2
rm -f "$f" rm -f "$f" || return 3
} }
## reload or new session are required to regenerate completions ## reload or new session are required to regenerate completions

View File

@ -14,13 +14,7 @@ dotfiles-git() { (
z-zwc-gen() { z-zwc-gen() {
local i local i
for i ( "${ZSHU[d_conf]}"/**/*.zsh(N.r) ) ; do for i ( "${ZSHU[d_conf]}"/**/*.zsh(N.r) ) ; do
zcompile -UR "$i" zcompile -U "$i"
done
for i ( "${ZSHU[d_cache]}/completion"/*(N.r) ) ; do
case "$i" in
*.zwc ) continue ;;
esac
zcompile -zUR "$i"
done done
} }