Compare commits
No commits in common. "0289d90fb900a906c3257ee81e7e61d9ae66bc8f" and "af26648283ec6557347834224612e007da99331f" have entirely different histories.
0289d90fb9
...
af26648283
@ -30,3 +30,5 @@ else
|
||||
## development tree
|
||||
gen_gitignore "${path_gitignore}"
|
||||
fi
|
||||
|
||||
exit 1
|
||||
|
@ -6,7 +6,6 @@
|
||||
!/.config/dotfiles/gitignore
|
||||
!/.config/dotfiles/install.sh
|
||||
!/.config/dotfiles/scripts/.keep
|
||||
!/.config/dotfiles/woodpecker.yml
|
||||
!/.config/htop/htoprc.example
|
||||
!/.config/mc/ini.example
|
||||
!/.config/zsh/_.zsh
|
||||
|
@ -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
|
@ -83,7 +83,6 @@ __z_comp_external() {
|
||||
return 3
|
||||
fi
|
||||
fi
|
||||
zcompile -zUR "$f" || return 4
|
||||
autoload -Uz "_$c"
|
||||
|
||||
return 0
|
||||
@ -111,9 +110,8 @@ z-comp-invalidate() {
|
||||
[ -n "$1" ] || return 1
|
||||
|
||||
f="${ZSHU[d_cache]}/completion/_$1"
|
||||
rm -f "$f.zwc"
|
||||
[ -f "$f" ] || return 2
|
||||
rm -f "$f"
|
||||
rm -f "$f" || return 3
|
||||
}
|
||||
|
||||
## reload or new session are required to regenerate completions
|
||||
|
@ -14,13 +14,7 @@ dotfiles-git() { (
|
||||
z-zwc-gen() {
|
||||
local i
|
||||
for i ( "${ZSHU[d_conf]}"/**/*.zsh(N.r) ) ; do
|
||||
zcompile -UR "$i"
|
||||
done
|
||||
for i ( "${ZSHU[d_cache]}/completion"/*(N.r) ) ; do
|
||||
case "$i" in
|
||||
*.zwc ) continue ;;
|
||||
esac
|
||||
zcompile -zUR "$i"
|
||||
zcompile -U "$i"
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user